From 8c2b626f974bab24c3fd4efe75502c6006760d28 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 29 Mar 2018 12:19:41 -0400 Subject: [PATCH] fix cli kwargs --- lbrynet/daemon/DaemonCLI.py | 2 +- lbrynet/daemon/auth/client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lbrynet/daemon/DaemonCLI.py b/lbrynet/daemon/DaemonCLI.py index af954dbb0..d8dd5404e 100644 --- a/lbrynet/daemon/DaemonCLI.py +++ b/lbrynet/daemon/DaemonCLI.py @@ -117,7 +117,7 @@ def main(): # TODO: check if port is bound. Error if its not try: - result = api.call(method, **kwargs) + result = api.call(method, kwargs) if isinstance(result, basestring): # printing the undumped string is prettier print result diff --git a/lbrynet/daemon/auth/client.py b/lbrynet/daemon/auth/client.py index a0823936c..3008bec8d 100644 --- a/lbrynet/daemon/auth/client.py +++ b/lbrynet/daemon/auth/client.py @@ -85,7 +85,7 @@ class AuthAPIClient(object): response = http_response.json() - if response['error'] is not None: + if response.get('error') is not None: raise JSONRPCException(response['error']) elif 'result' not in response: raise JSONRPCException({