We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 036d40b commit 5a34348Copy full SHA for 5a34348
1 file changed
src/utils/core/gpu_install.py
@@ -8,7 +8,7 @@
8
from src.utils.log.logger import Logger
9
10
11
-def fetch_gpu(log: Logger) -> str | None:
+def fetch_gpu(log: Logger) -> tuple[str, str | None] | None:
12
"""Fetch the GPU of the system.
13
14
Args:
@@ -31,4 +31,4 @@ def fetch_gpu(log: Logger) -> str | None:
31
log.logger("e", f"{Err}. Command lspci failed to execute.")
32
return None
33
else:
34
- return gpu_name
+ return gpu_name.decode("utf-8").strip().split("\n")
0 commit comments