aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/commands/eml_key.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman_pgp/commands/eml_key.py')
-rw-r--r--src/mailman_pgp/commands/eml_key.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mailman_pgp/commands/eml_key.py b/src/mailman_pgp/commands/eml_key.py
index a298ea7..29fa99c 100644
--- a/src/mailman_pgp/commands/eml_key.py
+++ b/src/mailman_pgp/commands/eml_key.py
@@ -347,6 +347,8 @@ def _cmd_revoke(pgp_list, mlist, msg, msgdata, arguments, results):
with transaction():
pgp_address.key = key_copy
print('Key succesfully updated.', file=results)
+ else:
+ print('Nothing to do.', file=results)
return ContinueProcessing.yes
@@ -432,9 +434,12 @@ def _cmd_sign(pgp_list, mlist, msg, msgdata, arguments, results):
continue
# sig is a new signature, not currenctly on uid, ans seems to
# be made by the pgp_address.key
- verification = pgp_address.key.verify(uid, sig)
- if bool(verification):
- uid_sigs.setdefault(uid, []).append(sig)
+ try:
+ verification = pgp_address.key.verify(uid, sig)
+ if bool(verification):
+ uid_sigs.setdefault(uid, []).append(sig)
+ except PGPError:
+ pass
if len(uid_sigs) == 0:
print('No new certifications found.', file=results)