diff options
Diffstat (limited to 'src/mailman_pgp/commands/eml_key.py')
| -rw-r--r-- | src/mailman_pgp/commands/eml_key.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman_pgp/commands/eml_key.py b/src/mailman_pgp/commands/eml_key.py index e792fa4..5bb2bd8 100644 --- a/src/mailman_pgp/commands/eml_key.py +++ b/src/mailman_pgp/commands/eml_key.py @@ -56,7 +56,7 @@ def _cmd_set(pgp_list, mlist, msg, msgdata, arguments, results): wrapped = PGPWrapper(msg) if wrapped.is_encrypted(): - decrypted = wrapped.decrypt(pgp_list.key) + decrypted = wrapped.try_decrypt(pgp_list.key) wrapped = PGPWrapper(decrypted) if not wrapped.has_keys(): @@ -134,7 +134,7 @@ def _cmd_confirm(pgp_list, mlist, msg, msgdata, arguments, results): wrapped = PGPWrapper(msg) if wrapped.is_encrypted(): - decrypted = wrapped.decrypt(pgp_list.key) + decrypted = wrapped.try_decrypt(pgp_list.key) wrapped = PGPWrapper(decrypted) if not wrapped.is_signed(): @@ -195,7 +195,7 @@ def _cmd_change(pgp_list, mlist, msg, msgdata, arguments, results): wrapped = PGPWrapper(msg) if wrapped.is_encrypted(): - decrypted = wrapped.decrypt(pgp_list.key) + decrypted = wrapped.try_decrypt(pgp_list.key) wrapped = PGPWrapper(decrypted) if not wrapped.has_keys(): |
