Add ref to Python bug
This commit is contained in:
parent
36c8bb492e
commit
f76b162263
|
@ -147,7 +147,7 @@ def get_dirs_from_args(args: Iterable[str]) -> List[Path]:
|
||||||
|
|
||||||
def safe_exists(path: Path) -> bool:
|
def safe_exists(path: Path) -> bool:
|
||||||
# This can throw on paths that contain characters unrepresentable at the OS level,
|
# This can throw on paths that contain characters unrepresentable at the OS level,
|
||||||
# or with invalid syntax on Windows
|
# or with invalid syntax on Windows (https://bugs.python.org/issue35306)
|
||||||
try:
|
try:
|
||||||
return path.exists()
|
return path.exists()
|
||||||
except OSError:
|
except OSError:
|
||||||
|
|
Loading…
Reference in New Issue