Skip to content

Commit

Permalink
Corrected a typo in an exception name
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-adams committed Mar 17, 2015
1 parent aa88601 commit 14c5f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jwt/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def prepare_key(self, key):
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.')

Expand Down

0 comments on commit 14c5f46

Please sign in to comment.