fix kwargs bug

This commit is contained in:
Jack Robison 2018-04-19 11:00:44 -04:00
parent f8e418fb44
commit 450bed6350
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -320,7 +320,7 @@ class AuthJSONRPCServer(AuthorizedBase):
elif len(args) == 1 and isinstance(args[0], dict):
# TODO: this is for backwards compatibility. Remove this once API and UI are updated
# TODO: also delete EMPTY_PARAMS then
_args, _kwargs = (), args
_args, _kwargs = (), args[0]
elif len(args) == 2 and isinstance(args[0], list) and isinstance(args[1], dict):
_args, _kwargs = args
else: