Skip to content

Commit 5164e32

Browse files
committed
fix(amd): interfere with device detection when importing amdsmi
Signed-off-by: thxCode <[email protected]>
1 parent b137bb7 commit 5164e32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gpustack_runtime/detector/pyamdsmi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
try:
1818
with Path(os.devnull).open("w") as dev_null, contextlib.redirect_stdout(dev_null):
1919
from amdsmi import *
20-
except (ImportError, KeyError, OSError):
20+
except Exception:
2121

2222
class AmdSmiException(Exception):
2323
pass

0 commit comments

Comments
 (0)