def _decode_response( self, response ):
     ret = json.loads( response )
     if "error" in ret:
         ex = InvalidRequestException( ret['error'] )
         ex.response = ret
         raise ex
     return ret
Exemplo n.º 2
0
 def _decode_response( self, response ):
     ret = json.loads( response )
     if "error" in ret:
         ex = InvalidRequestException( ret['error'] )
         ex.response = ret
         raise ex
     if "results" in ret:
         return ret['results']
         # XXX: Verify this is actually
         #      what we want.
     return ret
Exemplo n.º 3
0
 def _decode_response(self, response):
     ret = json.loads(response)
     if "error" in ret:
         ex = InvalidRequestException(ret['error'])
         ex.response = ret
         raise ex
     if "results" in ret:
         return ret['results']
         # XXX: Verify this is actually
         #      what we want.
     return ret