diff options
author | Ruben Pollan <meskio@sindominio.net> | 2016-06-16 20:16:54 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2016-06-20 18:30:22 +0200 |
commit | 3dc39619842dfb57d431744aee74d22f76c215e6 (patch) | |
tree | 842643dff4a0282064e27065d356199f2685ccda /src/leap/keymanager/errors.py | |
parent | b64591d39dbb03a76c5c0052ebb86d9fdb9915c7 (diff) |
[feat] check key document versions and fail if it's unknown
- Closes: #8165
Diffstat (limited to 'src/leap/keymanager/errors.py')
-rw-r--r-- | src/leap/keymanager/errors.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/leap/keymanager/errors.py b/src/leap/keymanager/errors.py index 8a9fb3c..dfff393 100644 --- a/src/leap/keymanager/errors.py +++ b/src/leap/keymanager/errors.py @@ -28,6 +28,15 @@ class KeyNotFound(Exception): pass +class KeyVersionError(KeyNotFound): + """ + Raised when key was found in the keyring but the version is not supported. + + It will usually mean that it was created by a newer version of KeyManager. + """ + pass + + class KeyAlreadyExists(Exception): """ Raised when attempted to create a key that already exists. |