def get_organizations():
 if (not organizations_enabled()):
  return []
 from organizations import api as organizations_api
 try:
  return organizations_api.get_organizations()
 except DatabaseError:
  return []

def get_organizations ( ) : if ( not organizations_enabled ( ) ) : return [ ] from organizations import api as organizations_api try : return organizations_api . get_organizations ( ) except DatabaseError : return [ ]
client api operation adapter/wrapper .