don't crash when gnupg doesn't have a status attribute.
This commit is contained in:
parent
58341e9742
commit
d9efb31b2e
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ if HAVE_GPG:
|
||||||
|
|
||||||
if result.fingerprint:
|
if result.fingerprint:
|
||||||
return self._stripHeaderFooter(str(result))
|
return self._stripHeaderFooter(str(result))
|
||||||
if result.status == 'key expired':
|
if hasattr(result, 'status') and result.status == 'key expired':
|
||||||
return 'KEYEXPIRED'
|
return 'KEYEXPIRED'
|
||||||
return 'BAD_PASSPHRASE'
|
return 'BAD_PASSPHRASE'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue