Skip to content

Commit 7ecade4

Browse files
vogelsgesangtomv564
authored andcommitted
Fixed incorrect retrieval of 'error' state
1 parent 27f6dc9 commit 7ecade4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugin/core/rpc.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,12 @@ def response_handler(self, response):
161161
result = response['result']
162162
if settings.log_payloads:
163163
debug(' ' + str(result))
164-
165164
if handler_id in self._response_handlers:
166165
self._response_handlers[handler_id](result)
167166
else:
168167
debug("No handler found for id" + response.get("id"))
169168
elif 'error' in response and 'result' not in response:
170-
error = response.get('result')
169+
error = response['error']
171170
if settings.log_payloads:
172171
debug(' ' + str(error))
173172
if handler_id in self._error_handlers:

0 commit comments

Comments
 (0)