diff options
author | Ruben Pollan <meskio@sindominio.net> | 2017-02-08 12:14:51 +0100 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2017-02-08 12:14:51 +0100 |
commit | b2e9902efc5e0950d37796947ec9ac191c9eb100 (patch) | |
tree | 0d19a9bb53a580f05079d86a07c806848a37da8b /alot/commands/utils.py | |
parent | f737aa5698320f0bf0225c7ddb72a1a5be6d0531 (diff) |
Convert gpg uid choices into a list
reversed doesn't work with generators
Diffstat (limited to 'alot/commands/utils.py')
-rw-r--r-- | alot/commands/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/commands/utils.py b/alot/commands/utils.py index 2d285f07..f54d4f09 100644 --- a/alot/commands/utils.py +++ b/alot/commands/utils.py @@ -75,8 +75,8 @@ def _get_keys(ui, encrypt_keyids, block_error=False, signed_only=False): signed_only=signed_only) except GPGProblem as e: if e.code == GPGCode.AMBIGUOUS_NAME: - tmp_choices = (k.uids[0].uid for k in - crypto.list_keys(hint=keyid)) + tmp_choices = [k.uids[0].uid for k in + crypto.list_keys(hint=keyid)] choices = {str(i): t for i, t in enumerate(reversed(tmp_choices), 1)} keyid = yield ui.choice("ambiguous keyid! Which " + |