mirror of
https://github.com/python/cpython.git
synced 2026-06-28 03:41:13 +00:00
gh-140145: Use repr of the key in zoneinfo "No time zone found" error (#140433)
Co-authored-by: Stan Ulbrych <stan@python.org>
This commit is contained in:
parent
46107ad9da
commit
585e14c7d3
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ def load_tzdata(key):
|
|||
# UnicodeEncodeError: If package_name or resource_name are not UTF-8,
|
||||
# such as keys containing a surrogate character.
|
||||
# IsADirectoryError: If package_name without a resource_name specified.
|
||||
raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
|
||||
raise ZoneInfoNotFoundError(f"No time zone found with key {key!r}")
|
||||
|
||||
|
||||
def load_data(fobj):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue