Skip to content

Commit 9568266

Browse files
committed
raise exception on failure
1 parent a8745e7 commit 9568266

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonbox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ def _check_response(self, response):
8989
json_data = response.json()
9090
return json_data
9191
else:
92-
return False
92+
raise ValueError(str(response.text))

0 commit comments

Comments
 (0)