Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
bitsandbytes
Commits
7d771d1d
Commit
7d771d1d
authored
Sep 15, 2022
by
Tom Aarsen
Browse files
Catch OSError with specific error number
parent
a58cc5a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
bitsandbytes/cuda_setup/paths.py
bitsandbytes/cuda_setup/paths.py
+3
-2
No files found.
bitsandbytes/cuda_setup/paths.py
View file @
7d771d1d
...
...
@@ -18,8 +18,9 @@ def remove_non_existent_dirs(candidate_paths: Set[Path]) -> Set[Path]:
try
:
if
path
.
exists
():
existent_directories
.
add
(
path
)
except
errno
.
ENAMETOOLONG
:
pass
except
OSError
as
exc
:
if
exc
.
errno
!=
errno
.
ENAMETOOLONG
:
raise
exc
non_existent_directories
:
Set
[
Path
]
=
candidate_paths
-
existent_directories
if
non_existent_directories
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment