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 7626e9093c
commit 874e79d820
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