Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito authored and simo5 committed Mar 15, 2023
1 parent fcdc7d7 commit 652afd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jwcrypto/jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,8 @@ def _check_string_claim(self, name, claims):
if name not in claims or claims[name] is None:
return
if not isinstance(claims[name], str):
raise JWTInvalidClaimFormat("Claim %s is not a StringOrURI type")
raise JWTInvalidClaimFormat(
"Claim %s is not a StringOrURI type" % (name, ))

def _check_array_or_string_claim(self, name, claims):
if name not in claims or claims[name] is None:
Expand Down

0 comments on commit 652afd9

Please sign in to comment.