fix calling gnupg.list_keys. Fixes #8122

This commit is contained in:
Yann Leboulanger 2015-08-12 22:13:29 +02:00
parent c69ab30ed6
commit 190b1b7886
1 changed files with 1 additions and 2 deletions

View File

@ -56,8 +56,7 @@ if HAVE_GPG:
trust = False trust = False
if not trust: if not trust:
# check that we'll be able to encrypt # check that we'll be able to encrypt
result = super(GnuPG, self).list_keys(recipients, result = super(GnuPG, self).list_keys(keys=recipients)
keys=recipients)
for key in result: for key in result:
if key['trust'] not in ('f', 'u'): if key['trust'] not in ('f', 'u'):
return '', 'NOT_TRUSTED' return '', 'NOT_TRUSTED'