wrap extra_ops.keys() in a list in ui/commands

This commit is contained in:
Johnny Robeson 2016-06-14 01:55:47 -04:00
parent ebff5a599c
commit 4b2c4ced6c

View file

@ -754,7 +754,7 @@ class TerminalImportSession(importer.ImportSession):
_, _, candidates, rec = autotag.tag_album(
task.items, search_ids=search_id.split()
)
elif choice in extra_ops.keys():
elif choice in list(extra_ops.keys()):
# Allow extra ops to automatically set the post-choice.
post_choice = extra_ops[choice](self, task)
if isinstance(post_choice, importer.action):