don't crash when GPG key are badly encrypted

This commit is contained in:
Yann Leboulanger 2013-07-17 12:50:34 +02:00
parent 9525c66532
commit 6dc8989854
1 changed files with 1 additions and 0 deletions

View File

@ -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