summaryrefslogtreecommitdiff
path: root/src/leap/keymanager/errors.py
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2014-12-14 22:13:57 -0600
committerRuben Pollan <meskio@sindominio.net>2014-12-16 11:55:16 -0600
commit4162fd5a7e6485fdcf068af06a743c1ef7676a50 (patch)
treee626e457fdc1dc8a2f5d6e63cb2026c354f9a9ff /src/leap/keymanager/errors.py
parent7bafe2465cf6b4432a80d4cbe2c938716b911fb2 (diff)
Return the right error on signature verification
Diffstat (limited to 'src/leap/keymanager/errors.py')
-rw-r--r--src/leap/keymanager/errors.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/leap/keymanager/errors.py b/src/leap/keymanager/errors.py
index 4041837e..8a9fb3c7 100644
--- a/src/leap/keymanager/errors.py
+++ b/src/leap/keymanager/errors.py
@@ -51,6 +51,13 @@ class NoPasswordGiven(Exception):
pass
+class InvalidSignature(Exception):
+ """
+ Raised when signature could not be verified.
+ """
+ pass
+
+
class EncryptError(Exception):
"""
Raised upon failures of encryption.