Skip to content

Commit

Permalink
Fix JSON decode error (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulineribeyre authored Nov 25, 2019
1 parent eaf2b83 commit fb9e9b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def handle_error(resp):
try:
json = resp.json()
resp.reason = json["error"]
except KeyError:
except (json.decoder.JSONDecodeError, KeyError):
pass
finally:
resp.raise_for_status()
Expand Down

0 comments on commit fb9e9b1

Please sign in to comment.