Skip to content

Commit 14c5f46

Browse files
committed
Corrected a typo in an exception name
1 parent aa88601 commit 14c5f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jwt/algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def prepare_key(self, key):
104104
key = key.encode('utf-8')
105105

106106
if (b'-----BEGIN PUBLIC KEY-----' in key or b'-----BEGIN CERTIFICATE-----' in key):
107-
raise InvalidAlgorithmError(
107+
raise InvalidKeyError(
108108
'The specified key is an assymetric key or x509 certificate and'
109109
' should not be used as an HMAC secret.')
110110

0 commit comments

Comments
 (0)