diff options
author | Mark Adams <mark@markadams.me> | 2015-03-17 18:47:32 -0500 |
---|---|---|
committer | Mark Adams <mark@markadams.me> | 2015-03-17 18:47:32 -0500 |
commit | 14c5f46391aa1fbaf07be4905998a70dcededa62 (patch) | |
tree | 3597b2a470ac401aff49ac947d1df9d975a9ebc1 /jwt/algorithms.py | |
parent | aa8860111afff817c2e8ca0e78c011e50195388f (diff) | |
download | pyjwt-14c5f46391aa1fbaf07be4905998a70dcededa62.tar.gz |
Corrected a typo in an exception name
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.') |