From 05e63acc22dde084b1f8b667a0fb3b9cf3cfb85a Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 22 May 2009 19:44:43 +0200 Subject: [PATCH] clean gpg call when we list keys. Fixes #5043 --- src/common/GnuPG.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/GnuPG.py b/src/common/GnuPG.py index a19f7546b..f6d8e7e2b 100644 --- a/src/common/GnuPG.py +++ b/src/common/GnuPG.py @@ -194,6 +194,9 @@ if gajim.HAVE_GPG: output = proc.handles['stdout'].read() proc.handles['stdout'].close() + try: proc.wait() + except IOError: pass + keys = {} lines = output.split('\n') for line in lines: @@ -234,4 +237,4 @@ if gajim.HAVE_GPG: out = out + "-----END PGP %s-----\n" % type_ return out -# vim: se ts=3: +# vim: set ts=3: