def _map_rpc_to_data(object_rpc):
try:
result = object_rpc.get_result()
if result.status_code != 200:
logging.warning("BatchLookup: Error downloading, error code is %s, body is %s", result.status_code, result.content)
if result.status_code in [200, 400]:
text = result.content
return json.loads(text)
except urlfetch.DownloadError, e:
logging.warning("BatchLookup: Error downloading: %s", e)
return None
评论列表
文章目录