From 474334a42e69da829a2d9f471b653939e2a28271 Mon Sep 17 00:00:00 2001 From: Max Bachmann Date: Thu, 1 Dec 2022 15:46:44 +0100 Subject: [PATCH] catch wider exception range --- src/rapidfuzz/_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)