Skip to content

Commit

Permalink
oops, don't code while hungry
Browse files Browse the repository at this point in the history
  • Loading branch information
pachewise committed Feb 23, 2025
1 parent cd35b18 commit ea06302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jwt/api_jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def encode(
payload[time_claim] = timegm(payload[time_claim].utctimetuple())

# Issue #1039, iss being set to non-string
if "iss" in payload and isinstance(payload["iss"], str):
if "iss" in payload and not isinstance(payload["iss"], str):
raise TypeError("Issuer (iss) must be a string.")

Check warning on line 74 in jwt/api_jwt.py

View check run for this annotation

Codecov / codecov/patch

jwt/api_jwt.py#L74

Added line #L74 was not covered by tests

json_payload = self._encode_payload(
Expand Down

0 comments on commit ea06302

Please sign in to comment.