summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jwt/api_jwk.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/jwt/api_jwk.py b/jwt/api_jwk.py
index dd876f7..456c7f4 100644
--- a/jwt/api_jwk.py
+++ b/jwt/api_jwk.py
@@ -5,7 +5,7 @@ import time
from typing import Any
from .algorithms import get_default_algorithms, has_crypto, requires_cryptography
-from .exceptions import InvalidKeyError, PyJWKError, PyJWKSetError
+from .exceptions import InvalidKeyError, PyJWKError, PyJWKSetError, PyJWTError
from .types import JWKDict
@@ -94,7 +94,7 @@ class PyJWKSet:
for key in keys:
try:
self.keys.append(PyJWK(key))
- except PyJWKError:
+ except PyJWTError:
# skip unusable keys
continue