From b050e63b602d5862349d1326b8f45d3203079a56 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Wed, 30 May 2012 08:30:49 +0200 Subject: [PATCH] don't crash when there are non-ascii chars in gpg keys list --- src/common/gpg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/gpg.py b/src/common/gpg.py index af00d89a97..5a29a69fa4 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) + gnupg.GPG.decode_errors = 'replace' self.passphrase = None self.use_agent = use_agent self.always_trust = False -- GitLab