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

fix calling gnupg.list_keys. Fixes #8122

parent 4dec6135
......@@ -56,8 +56,7 @@ if HAVE_GPG:
trust = False
if not trust:
# check that we'll be able to encrypt
result = super(GnuPG, self).list_keys(recipients,
keys=recipients)
result = super(GnuPG, self).list_keys(keys=recipients)
for key in result:
if key['trust'] not in ('f', 'u'):
return '', 'NOT_TRUSTED'
......
Markdown is supported
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