Skip to content

Commit

Permalink
[py]: use correct logic for is_local_file #12474
Browse files Browse the repository at this point in the history
  • Loading branch information
symonk authored Aug 2, 2023
1 parent ac268a1 commit fbfa5d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py/selenium/webdriver/remote/file_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ class LocalFileDetector(FileDetector):
def is_local_file(self, *keys: AnyKey) -> Optional[str]:
file_path = "".join(keys_to_typing(keys))
with suppress(OSError):
return Path(file_path).is_file()
_ = Path(file_path).is_file()
return file_path

1 comment on commit fbfa5d2

@MarcelWilson
Copy link

@MarcelWilson MarcelWilson commented on fbfa5d2 Aug 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oddly, github diff doesn't show it here (you can see it in the blame) but line 52 has extra spaces in it that black --check fails on.

Please sign in to comment.