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

don't crash when GPG key are badly encrypted

parent 9525c665
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@ if HAVE_GPG:
class GnuPG(gnupg.GPG):
def __init__(self, use_agent=False):
gnupg.GPG.__init__(self)
self.decode_errors = 'replace'
self.passphrase = None
self.use_agent = use_agent
self.always_trust = False
......
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