catch wider exception range
This commit is contained in:
parent
3aeef594a1
commit
474334a42e
|
@ -74,7 +74,7 @@ def fallback_import(
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
cpp_mod = importlib.import_module(module + "_cpp")
|
cpp_mod = importlib.import_module(module + "_cpp")
|
||||||
except ModuleNotFoundError:
|
except Exception:
|
||||||
return py_func
|
return py_func
|
||||||
|
|
||||||
cpp_func = getattr(cpp_mod, name)
|
cpp_func = getattr(cpp_mod, name)
|
||||||
|
|
Loading…
Reference in New Issue