Commit bc3708a4 authored by Michael Boulton's avatar Michael Boulton Committed by Simo Sorce

Fix misleading error message

parent 69c845c7
......@@ -384,8 +384,8 @@ class JWT(object):
if value in claims[name]:
raise JWTInvalidClaimValue(
"Invalid '%s' value. Expected '%s' in '%s'" % (
name, value, claims[name]))
"Invalid '%s' value. Expected '%s' to be in '%s'" % (
name, claims[name], value))
elif name == 'exp':
if value is not None:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment