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({