fix cli kwargs

This commit is contained in:
Jack Robison 2018-03-29 12:19:41 -04:00
parent 0279d37b32
commit 8c2b626f97
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

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