def _checkSabResponse(jdata):
 if (u'error' in jdata):
  logger.log(jdata[u'error'], logger.ERROR)
  return (False, jdata[u'error'])
 else:
  return (True, jdata)

def _checkSabResponse ( jdata ) : if ( u'error' in jdata ) : logger . log ( jdata [ u'error' ] , logger . ERROR ) return ( False , jdata [ u'error' ] ) else : return ( True , jdata )
check response from sab .