summaryrefslogtreecommitdiff
path: root/src/home/api/web_api_client.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-12-18 06:31:24 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-12-24 12:57:55 +0300
commit0a065f48be99d4ebae49de622a335f23e50c6ca0 (patch)
treeb591d91fac26e5bf7a4dd6d37178b978061ef060 /src/home/api/web_api_client.py
parent022ec129bb8f511a7bf8cf537f165afce2303262 (diff)
pump-mqtt-bot: wip; relayctl: somewhat stable
Diffstat (limited to 'src/home/api/web_api_client.py')
-rw-r--r--src/home/api/web_api_client.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/home/api/web_api_client.py b/src/home/api/web_api_client.py
index f74b5a1..ca9a9ee 100644
--- a/src/home/api/web_api_client.py
+++ b/src/home/api/web_api_client.py
@@ -183,9 +183,9 @@ class WebAPIClient:
data = json.loads(r.text)
if r.status_code != 200:
raise ApiResponseError(r.status_code,
- data['error']['type'],
- data['error']['message'],
- data['error']['stacktrace'] if 'stacktrace' in data['error'] else None)
+ data['error'],
+ data['message'],
+ data['stacktrace'] if 'stacktrace' in data['error'] else None)
return data['response'] if 'response' in data else True
finally: