Skip to content

Commit fbfa5d2

Browse files
authored
[py]: use correct logic for is_local_file #12474
1 parent ac268a1 commit fbfa5d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

py/selenium/webdriver/remote/file_detector.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ class LocalFileDetector(FileDetector):
4747
def is_local_file(self, *keys: AnyKey) -> Optional[str]:
4848
file_path = "".join(keys_to_typing(keys))
4949
with suppress(OSError):
50-
return Path(file_path).is_file()
50+
_ = Path(file_path).is_file()
51+
return file_path
5152

0 commit comments

Comments
 (0)