Skip to content

Commit

Permalink
Requests lib now report json decode errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
yombo committed Oct 30, 2018
1 parent 14e9edc commit 6c5a8c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yombo/lib/requests.py
Expand Up @@ -144,8 +144,8 @@ def process_response(self, response):
try:
content = yield treq.json_content(response)
content_type = "dict"
except Exception:
raise YomboWarning("Receive response reported json, but isn't: %s" % content)
except Exception as e:
raise YomboWarning("Receive response reported json, but found an error: %s" % e)
elif content_type == CONTENT_TYPE_MSGPACK:
try:
content = msgpack.loads(raw_content)
Expand Down

0 comments on commit 6c5a8c3

Please sign in to comment.