Skip to content

Commit 0af2fdf

Browse files
auvipyCopilot
andauthored
Update jwt/api_jwt.py
Co-authored-by: Copilot <[email protected]>
1 parent df42d7b commit 0af2fdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jwt/api_jwt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def _validate_claims(
393393
elif isinstance(now, datetime):
394394
now = now.timestamp()
395395
elif not isinstance(now, (int, float)):
396-
raise TypeError("now must be a float, datetime or None")
396+
raise TypeError("now must be a number (int or float)")
397397

398398
if "iat" in payload and options["verify_iat"]:
399399
self._validate_iat(payload, now, leeway)

0 commit comments

Comments
 (0)