diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2018-02-08 11:11:10 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-02-08 11:11:10 -0800 |
commit | 7cad5bb95a8726ae9933506fc63fd313c46acbd4 (patch) | |
tree | 026b702d8ea08cde39882f049f7091ab0140898c | |
parent | 7091048adf3e4455fb2e3adfe27ce1e10165a5e3 (diff) |
fix ambiguous keys harder
always pass keyword arguments as thus, to prevent problems like this.
-rw-r--r-- | alot/commands/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alot/commands/utils.py b/alot/commands/utils.py index b7915378..7a1c0ac1 100644 --- a/alot/commands/utils.py +++ b/alot/commands/utils.py @@ -97,7 +97,8 @@ def _get_keys(ui, encrypt_keyids, block_error=False, signed_only=False): crypto.list_keys(hint=keyid)], 1)} choosen_key = yield ui.choice("ambiguous keyid! Which " + "key do you want to use?", - choices, keys_to_return) + choices=choices, + choices_to_return=keys_to_return) if choosen_key: keys[choosen_key.fpr] = choosen_key continue |