diff options
Diffstat (limited to 'src/mailman_pgp/pgp')
| -rw-r--r-- | src/mailman_pgp/pgp/wrapper.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mailman_pgp/pgp/wrapper.py b/src/mailman_pgp/pgp/wrapper.py index 42b51b9..f506c2e 100644 --- a/src/mailman_pgp/pgp/wrapper.py +++ b/src/mailman_pgp/pgp/wrapper.py @@ -188,6 +188,7 @@ class PGPWrapper(): :param key: The key to decrypt with. :type key: pgpy.PGPKey :return: The decrypted message. + :raises: pgpy.errors.PGPError :rtype: mailman.email.message.Message """ if self.mime.is_encrypted(): @@ -199,9 +200,12 @@ class PGPWrapper(): def try_decrypt(self, key): """ + Try decrypting the message with given key. - :param key: - :return: + :param key: The key to decrypt with. + :type key: pgpy.PGPKey + :return: The decrypted message, if successfully decrypted, + else original message. :rtype: mailman.email.message.Message """ try: |
