From 3ccb1308dc078278d8d6f98349ee823a52471955 Mon Sep 17 00:00:00 2001 From: Matthew Douglas <38992547+matthewdouglas@users.noreply.github.com> Date: Mon, 18 Mar 2024 14:14:20 -0400 Subject: [PATCH] fix diagnostics error within vscode on windows --- bitsandbytes/diagnostics/cuda.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitsandbytes/diagnostics/cuda.py b/bitsandbytes/diagnostics/cuda.py index f993dff7e..8974c6400 100644 --- a/bitsandbytes/diagnostics/cuda.py +++ b/bitsandbytes/diagnostics/cuda.py @@ -59,7 +59,7 @@ def find_cuda_libraries_in_path_list(paths_list_candidate: str) -> Iterable[Path for pth in dir.glob(lib_pattern): if pth.is_file(): yield pth - except PermissionError: + except (OSError, PermissionError): pass