Skip to content

Commit 0b580cc

Browse files
authored
Merge pull request #465 from bukzor/main
fix: UnboundLocalError: cannot access local variable netloc where it …
2 parents a23dd6d + ea574c9 commit 0b580cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/check_jsonschema/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ def filename2path(filename: str) -> pathlib.Path:
7373
netloc = ""
7474
elif WINDOWS:
7575
netloc = "\\\\" + urlinfo.netloc
76+
else:
77+
netloc = urlinfo.netloc
7678

7779
filename = urllib.request.url2pathname(netloc + urlinfo.path)
7880

0 commit comments

Comments
 (0)