Merge pull request #3 from sethforprivacy/patch-2

Fix JSON response error handling
This commit is contained in:
Artur
2024-10-04 11:42:39 -03:00
committed by GitHub

View File

@@ -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