summaryrefslogtreecommitdiff
path: root/jwt/exceptions.py
diff options
context:
space:
mode:
authorMark Adams <mark@markadams.me>2015-03-17 14:55:22 -0500
committerMark Adams <madams@atlassian.com>2015-03-17 14:56:52 -0500
commit3e59fe6c9e88d212180dfec61b36d58858af0367 (patch)
treef1c18b7a756f958ecb13894aa50638d7fb28231f /jwt/exceptions.py
parentfd3a489e975afe490442c6b12f089263557bd341 (diff)
downloadpyjwt-3e59fe6c9e88d212180dfec61b36d58858af0367.tar.gz
Added a check to raise an error if alg = 'none' and a key is specified. (Fixes #106)
Diffstat (limited to 'jwt/exceptions.py')
-rw-r--r--jwt/exceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jwt/exceptions.py b/jwt/exceptions.py
index 4b5d647..ea57b35 100644
--- a/jwt/exceptions.py
+++ b/jwt/exceptions.py
@@ -18,7 +18,7 @@ class InvalidIssuerError(InvalidTokenError):
pass
-class InvalidAlgorithmError(Exception):
+class InvalidKeyError(Exception):
pass