Skip to content

Commit 45e7b41

Browse files
authored
[mlir:python] Fail immediately if importing an initializer module raises ImportError (#74595)
1 parent 65cb5d5 commit 45e7b41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/python/mlir/_mlir_libs/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def process_initializer_module(module_name):
9494
"encountered otherwise and the MLIR Python API may not function."
9595
)
9696
logger.warning(message, exc_info=True)
97+
return False
9798

9899
logger.debug("Initializing MLIR with module: %s", module_name)
99100
if hasattr(m, "register_dialects"):

0 commit comments

Comments
 (0)