don't crash when there are non-ascii chars in gpg keys list

This commit is contained in:
Yann Leboulanger 2012-05-30 08:30:49 +02:00
parent e195cfb188
commit b050e63b60

View file

@ -31,6 +31,7 @@ if HAVE_GPG:
class GnuPG(gnupg.GPG):
def __init__(self, use_agent=False):
gnupg.GPG.__init__(self)
gnupg.GPG.decode_errors = 'replace'
self.passphrase = None
self.use_agent = use_agent
self.always_trust = False