mirror of
https://github.com/MAGICGrants/autoforward-autoconvert.git
synced 2026-01-09 21:48:04 -05:00
Merge pull request #3 from sethforprivacy/patch-2
Fix JSON response error handling
This commit is contained in:
@@ -87,7 +87,7 @@ def kraken_request(path: str, payload = {}) -> dict:
|
||||
|
||||
response_json = response.json()
|
||||
|
||||
if 'error' in response_json:
|
||||
if response_json["error"]:
|
||||
raise Exception(response_json)
|
||||
|
||||
return response_json
|
||||
return response_json
|
||||
|
||||
Reference in New Issue
Block a user