catch wider exception range

This commit is contained in:
Max Bachmann 2022-12-01 15:46:44 +01:00
parent 3aeef594a1
commit 474334a42e
1 changed files with 1 additions and 1 deletions

View File

@ -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)