Skip to content
Snippets Groups Projects
Commit d9efb31b authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

don't crash when gnupg doesn't have a status attribute.

parent 58341e97
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,7 @@ if HAVE_GPG:
if result.fingerprint:
return self._stripHeaderFooter(str(result))
if result.status == 'key expired':
if hasattr(result, 'status') and result.status == 'key expired':
return 'KEYEXPIRED'
return 'BAD_PASSPHRASE'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment