diff --git a/src/rapidfuzz/_utils.py b/src/rapidfuzz/_utils.py index 662178c..d4390a5 100644 --- a/src/rapidfuzz/_utils.py +++ b/src/rapidfuzz/_utils.py @@ -74,7 +74,7 @@ def fallback_import( else: try: cpp_mod = importlib.import_module(module + "_cpp") - except ModuleNotFoundError: + except Exception: return py_func cpp_func = getattr(cpp_mod, name)