fix calling gnupg.list_keys. Fixes #8122
This commit is contained in:
parent
c69ab30ed6
commit
190b1b7886
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue