We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ffaefe commit 621f891Copy full SHA for 621f891
1 file changed
brainpy/_src/dependency_check.py
@@ -52,9 +52,9 @@ def import_braintaichi(error_if_not_found=True):
52
if importlib.util.find_spec('braintaichi') is not None:
53
try:
54
import braintaichi as braintaichi
55
- except ModuleNotFoundError:
+ except ModuleNotFoundError as e:
56
if error_if_not_found:
57
- raise_braintaichi_not_found()
+ raise e
58
else:
59
braintaichi = None
60
0 commit comments