Get rid of unnecessary GPG "PROGRESS" ValueError's
Bug description
When starting up Gajim (hg default branch with GTK3, but this is probably present on other branches as well), there are a lot of ValueError
's thrown from Verify.handle_status
because "PROGRESS" is not a recognized key. A PROGRESS message occures several times while GPG is gathering entropy, so lots of warnings are thrown. I'm not sure if it's used any other time, but I haven't noticed any adverse effects while running this patch.
These errors are not visible to the end user (they're just dumped to STDERR).
diff -r a067244c9ff8 src/common/gnupg.py
--- a/src/common/gnupg.py Mon Jan 05 22:34:37 2015 +0100
+++ b/src/common/gnupg.py Sun Jan 11 19:36:07 2015 -0500
@@ -175,7 +175,8 @@
"PLAINTEXT_LENGTH", "POLICY_URL", "DECRYPTION_INFO",
"DECRYPTION_OKAY", "INV_SGNR", "FILE_START", "FILE_ERROR",
"FILE_DONE", "PKA_TRUST_GOOD", "PKA_TRUST_BAD", "BADMDC",
- "GOODMDC", "NO_SGNR", "NOTATION_NAME", "NOTATION_DATA"):
+ "GOODMDC", "NO_SGNR", "NOTATION_NAME", "NOTATION_DATA",
+ "PROGRESS"):
pass
elif key == "BADSIG":
self.valid = False