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
|
# TODO: check if port is bound. Error if its not
|
||||||
|
|
||||||
try:
|
try:
|
||||||
result = api.call(method, **kwargs)
|
result = api.call(method, kwargs)
|
||||||
if isinstance(result, basestring):
|
if isinstance(result, basestring):
|
||||||
# printing the undumped string is prettier
|
# printing the undumped string is prettier
|
||||||
print result
|
print result
|
||||||
|
|
|
@ -85,7 +85,7 @@ class AuthAPIClient(object):
|
||||||
|
|
||||||
response = http_response.json()
|
response = http_response.json()
|
||||||
|
|
||||||
if response['error'] is not None:
|
if response.get('error') is not None:
|
||||||
raise JSONRPCException(response['error'])
|
raise JSONRPCException(response['error'])
|
||||||
elif 'result' not in response:
|
elif 'result' not in response:
|
||||||
raise JSONRPCException({
|
raise JSONRPCException({
|
||||||
|
|
Loading…
Add table
Reference in a new issue