From 652afd928714cefad29482cdd5bd16c8108ed141 Mon Sep 17 00:00:00 2001 From: Christoph Zwerschke Date: Wed, 15 Mar 2023 13:55:45 +0100 Subject: [PATCH] Fix error message --- jwcrypto/jwt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jwcrypto/jwt.py b/jwcrypto/jwt.py index a6eeaf6..b7a29b8 100644 --- a/jwcrypto/jwt.py +++ b/jwcrypto/jwt.py @@ -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: