Skip to content

Commit

Permalink
Replaced one % with an f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Oct 10, 2023
1 parent 965fc54 commit 6dbfa36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tzlocal/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,6 @@ def _tz_from_env(tzenv=None):
except zoneinfo.ZoneInfoNotFoundError:
# Nope, it's something like "PST4DST" etc, we can't handle that.
raise zoneinfo.ZoneInfoNotFoundError(
"tzlocal() does not support non-zoneinfo timezones like %s. \n"
"Please use a timezone in the form of Continent/City" % tzenv
f"tzlocal() does not support non-zoneinfo timezones like {tzenv}. \n"
"Please use a timezone in the form of Continent/City"
) from None

0 comments on commit 6dbfa36

Please sign in to comment.