summaryrefslogtreecommitdiff
path: root/alot/errors.py
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2016-11-30 02:30:44 -0500
committerDylan Baker <dylan@pnwbakers.com>2017-08-14 09:30:34 -0700
commitb0e2f322aa571a5e1999c069779f589e282a566c (patch)
treed5b905ff596a045ef4c8e5c9540772218b026230 /alot/errors.py
parentc377ee5bd6e2b64be8bbdd5df72ac3ca50373134 (diff)
convert from pygpgme to the python "gpg" module
This converts from the now abandoned pygpgme project for wrapping gpgme, to the upstream gpgme python bindings (which are descended from the pyme project, before they became official). Largely this change should not be user visible, but there are a couple cases where the new bindings provide slightly more detailed error messages, and alot directly presents those messages to users. This patch has been significantly revised and updated by Dylan Baker, but was originally authored by Daniel Kahn Gillmor. Fixes #1069
Diffstat (limited to 'alot/errors.py')
-rw-r--r--alot/errors.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/alot/errors.py b/alot/errors.py
index 9860f411..c312e674 100644
--- a/alot/errors.py
+++ b/alot/errors.py
@@ -13,6 +13,8 @@ class GPGCode(object):
KEY_CANNOT_ENCRYPT = 7
KEY_CANNOT_SIGN = 8
INVALID_HASH = 9
+ INVALID_HASH_ALGORITHM = 10
+ BAD_SIGNATURE = 11
class GPGProblem(Exception):