fix cli kwargs
This commit is contained in:
parent
0279d37b32
commit
8c2b626f97
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue