Skip to content

Commit 036d40b

Browse files
committed
handle file not found exception when the command executable is not found
1 parent d6c1078 commit 036d40b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/core/gpu_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def fetch_gpu(log: Logger) -> str | None:
2727

2828
if lspci_out.returncode != 0:
2929
raise SystemExit(["lspci"], lspci_out.returncode)
30-
except CalledProcessError as Err:
30+
except (CalledProcessError, FileNotFoundError) as Err:
3131
log.logger("e", f"{Err}. Command lspci failed to execute.")
3232
return None
3333
else:

0 commit comments

Comments
 (0)