Skip to content

Commit dd1577a

Browse files
committed
use exceptions from .exception
1 parent ec3febe commit dd1577a

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/cryptojwt/key_jar.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from requests import request
77

8+
from .exception import UnknownKeyType, KeyIOError, UpdateFailed
89
from .jwe.jwe import alg2keytype as jwe_alg2keytype
910
from .jws.utils import alg2keytype as jws_alg2keytype
1011
from .key_bundle import KeyBundle
@@ -20,18 +21,6 @@
2021
logger = logging.getLogger(__name__)
2122

2223

23-
class KeyIOError(Exception):
24-
pass
25-
26-
27-
class UnknownKeyType(KeyIOError):
28-
pass
29-
30-
31-
class UpdateFailed(KeyIOError):
32-
pass
33-
34-
3524
class KeyJar(object):
3625
""" A keyjar contains a number of KeyBundles sorted by owner/issuer """
3726

0 commit comments

Comments
 (0)