Skip to content

Commit 5ae50d7

Browse files
committed
Handle optional import probe failures
Signed-off-by: JooHo Lee <jooho414@gmail.com>
1 parent 5729096 commit 5ae50d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎vllm/utils/import_utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def _has_module(module_name: str) -> bool:
404404
if importlib.util.find_spec(module_name) is None:
405405
return False
406406
importlib.import_module(module_name)
407-
except ImportError:
407+
except Exception:
408408
logger.warning(
409409
"Module %s was found but failed to import", module_name, exc_info=True
410410
)

0 commit comments

Comments
 (0)