-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Description
Hey guys,
Sometimes we receive a HTTP 504 response error that is not appropriately being caught. In parse_response
when you call payload = resp.json()
, it will throw a ValueError("No JSON object could be decoded")
error.
What I'm thinking of adding before payload = resp.json()
:
if resp.status_code == 504:
raise error.APIConnectionError(resp.content,
resp.content, resp.status_code, resp)
Thoughts? Happy to submit a PR if you think this is good.
Metadata
Metadata
Assignees
Labels
No labels