Skip to content

Commit 535f122

Browse files
Aman MathurAman Mathur
authored andcommitted
Corrected error checking for api-responses
1 parent 5c26223 commit 535f122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vyked/services.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def _xpublish(self, endpoint, payload, strategy):
510510
@staticmethod
511511
def _make_response_packet(request_id: str, from_id: str, entity: str, result: object, error: object,
512512
failed: bool, old_api=None, replacement_api=None):
513-
if error:
513+
if failed:
514514
payload = {'request_id': request_id, 'error': error, 'failed': failed}
515515
else:
516516
payload = {'request_id': request_id, 'result': result}

0 commit comments

Comments
 (0)