We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e0ec81 commit e421b48Copy full SHA for e421b48
1 file changed
cuda_bindings/cuda/bindings/_internal/nvjitlink_linux.pyx
@@ -92,8 +92,11 @@ cdef void* load_library(const int driver_ver) except* with gil:
92
attachment = []
93
for so_dirname in candidate_so_dirs:
94
attachment.append(f" listdir({repr(so_dirname)}):")
95
- for node in sorted(os.listdir(so_dirname)):
96
- attachment.append(f" {node}")
+ if not os.path.isdir(so_dirname):
+ attachment.append(" DIRECTORY DOES NOT EXIST")
97
+ else:
98
+ for node in sorted(os.listdir(so_dirname)):
99
+ attachment.append(f" {node}")
100
attachment = "\n".join(attachment)
101
raise RuntimeError(f"Unable to load {so_basename} from: {', '.join(error_messages)}\n{attachment}")
102
0 commit comments