Commit 390b9128 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix calling gnupg.list_keys. Fixes #8122

parent 4dec6135
......@@ -56,8 +56,7 @@ def encrypt(self, str_, recipients, always_trust=False):
trust = False
if not trust:
# check that we'll be able to encrypt
result = super(GnuPG, self).list_keys(recipients,
result = super(GnuPG, self).list_keys(keys=recipients)
for key in result:
if key['trust'] not in ('f', 'u'):
return '', 'NOT_TRUSTED'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment