Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Commit fb9e9b1

Browse files
Fix JSON decode error (#57)
1 parent eaf2b83 commit fb9e9b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indexclient/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def handle_error(resp):
2828
try:
2929
json = resp.json()
3030
resp.reason = json["error"]
31-
except KeyError:
31+
except (json.decoder.JSONDecodeError, KeyError):
3232
pass
3333
finally:
3434
resp.raise_for_status()

0 commit comments

Comments
 (0)