don't crash when GPG key are badly encrypted
This commit is contained in:
parent
9525c66532
commit
6dc8989854
|
@ -31,6 +31,7 @@ if HAVE_GPG:
|
||||||
class GnuPG(gnupg.GPG):
|
class GnuPG(gnupg.GPG):
|
||||||
def __init__(self, use_agent=False):
|
def __init__(self, use_agent=False):
|
||||||
gnupg.GPG.__init__(self)
|
gnupg.GPG.__init__(self)
|
||||||
|
self.decode_errors = 'replace'
|
||||||
self.passphrase = None
|
self.passphrase = None
|
||||||
self.use_agent = use_agent
|
self.use_agent = use_agent
|
||||||
self.always_trust = False
|
self.always_trust = False
|
||||||
|
|
Loading…
Reference in New Issue