From 6dc8989854e6b1a59487bc7d5ac8df73b5f95486 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 17 Jul 2013 12:50:34 +0200 Subject: [PATCH] don't crash when GPG key are badly encrypted --- src/common/gpg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/gpg.py b/src/common/gpg.py index 2f7957626..c95ed2257 100644 --- a/src/common/gpg.py +++ b/src/common/gpg.py @@ -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