summaryrefslogtreecommitdiff
path: root/jwt/api_jwt.py
diff options
context:
space:
mode:
authorMark Adams <mark@markadams.me>2017-04-17 08:25:39 -0500
committerMark Adams <mark@markadams.me>2017-04-17 08:34:12 -0500
commit3447f0c0eb7de46042b5cda975d37e361168bf60 (patch)
treed435cb09b5aa15580527b0d41b6d9e32d3f6fc4b /jwt/api_jwt.py
parent8f3a2a8a4098693357b69d63a1dbec514ed7c701 (diff)
downloadpyjwt-190-remove-iat-verification.tar.gz
Non-numeric 'iat' now raises InvalidIssuedAtError on decode()190-remove-iat-verification
Diffstat (limited to 'jwt/api_jwt.py')
-rw-r--r--jwt/api_jwt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jwt/api_jwt.py b/jwt/api_jwt.py
index 059c4a0..bca6823 100644
--- a/jwt/api_jwt.py
+++ b/jwt/api_jwt.py
@@ -123,7 +123,7 @@ class PyJWT(PyJWS):
try:
int(payload['iat'])
except ValueError:
- raise DecodeError('Issued At claim (iat) must be an integer.')
+ raise InvalidIssuedAtError('Issued At claim (iat) must be an integer.')
def _validate_nbf(self, payload, now, leeway):
try: