From ff15366b2c97cc673e6973340d616ad994d36603 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 22 Jul 2005 17:28:45 +0000 Subject: [PATCH] nothing important --- src/common/GnuPG.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/common/GnuPG.py b/src/common/GnuPG.py index 4adf26a09..ea2cd5ea4 100644 --- a/src/common/GnuPG.py +++ b/src/common/GnuPG.py @@ -115,10 +115,9 @@ else: try: proc.wait() except IOError: pass - if resp.has_key('BAD_PASSPHRASE'): - return 'BAD_PASSPHRASE' - elif resp.has_key('GOOD_PASSPHRASE'): + if resp.has_key('GOOD_PASSPHRASE'): return self._stripHeaderFooter(output) + return 'BAD_PASSPHRASE' def verify(self, str, sign): if not USE_GPG: @@ -154,7 +153,7 @@ else: def get_keys(self, secret = False): if not USE_GPG: - return + return {} if secret: opt = '--list-secret-keys' else: