diff options
Diffstat (limited to 'jwt/algorithms.py')
-rw-r--r-- | jwt/algorithms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jwt/algorithms.py b/jwt/algorithms.py index 4ed0c21..f539b5e 100644 --- a/jwt/algorithms.py +++ b/jwt/algorithms.py @@ -104,7 +104,7 @@ class HMACAlgorithm(Algorithm): key = key.encode('utf-8') if (b'-----BEGIN PUBLIC KEY-----' in key or b'-----BEGIN CERTIFICATE-----' in key): - raise InvalidAlgorithmError( + raise InvalidKeyError( 'The specified key is an assymetric key or x509 certificate and' ' should not be used as an HMAC secret.') |