From 3dc39619842dfb57d431744aee74d22f76c215e6 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Thu, 16 Jun 2016 20:16:54 +0200 Subject: [feat] check key document versions and fail if it's unknown - Closes: #8165 --- src/leap/keymanager/errors.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/leap/keymanager/errors.py') 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. -- cgit v1.2.3