Skip to content

Commit df20358

Browse files
committed
same for string
1 parent 1dcee41 commit df20358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/zoneinfo/_tzpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def find_tzfile(key):
8383

8484

8585
def _validate_tzfile_path(path, _base=_TEST_PATH):
86-
if path == "":
86+
if isintance(str, path) and path == "":
8787
raise ValueError(
8888
"ZoneInfo key must not be an empty string"
8989
)

0 commit comments

Comments
 (0)