Skip to content

Commit

Permalink
fix a python3 dict.values()[0] issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rmmh committed May 14, 2019
1 parent 729788e commit 0fbe8ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/main.py
Expand Up @@ -158,7 +158,7 @@ def dispatch(input, kind, func, args, autohelp=False):

# Return a single key as just the value, and multiple keys as a dict.
if len(keys) == 1:
input.api_key = keys.values()[0]
input.api_key = list(keys.values())[0]
else:
input.api_key = keys

Expand Down

0 comments on commit 0fbe8ed

Please sign in to comment.