diff options
author | Peter Hawkins <phawkins@google.com> | 2023-12-06 13:42:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-06 12:42:11 -0600 |
commit | 45e7b410c0a19fd36c2264cdc3a1b4f2ab966790 (patch) | |
tree | d3f752a1a7bdcada384f4b67d7a2aa07a8ea61ce /mlir | |
parent | 65cb5d58eb5783c17fd2121db79ebac950b767b2 (diff) | |
download | llvm-45e7b410c0a19fd36c2264cdc3a1b4f2ab966790.zip llvm-45e7b410c0a19fd36c2264cdc3a1b4f2ab966790.tar.gz llvm-45e7b410c0a19fd36c2264cdc3a1b4f2ab966790.tar.bz2 |
[mlir:python] Fail immediately if importing an initializer module raises ImportError (#74595)
Diffstat (limited to 'mlir')
-rw-r--r-- | mlir/python/mlir/_mlir_libs/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mlir/python/mlir/_mlir_libs/__init__.py b/mlir/python/mlir/_mlir_libs/__init__.py index 32f46d2..98dbbc6 100644 --- a/mlir/python/mlir/_mlir_libs/__init__.py +++ b/mlir/python/mlir/_mlir_libs/__init__.py @@ -94,6 +94,7 @@ def _site_initialize(): "encountered otherwise and the MLIR Python API may not function." ) logger.warning(message, exc_info=True) + return False logger.debug("Initializing MLIR with module: %s", module_name) if hasattr(m, "register_dialects"): |