Skip to content

Commit 621f891

Browse files
authored
[bug] Fix exception handling for missing braintaichi module in dependency check (#746)
* Fix exception handling for missing braintaichi module in dependency check * Update dependency_check.py
1 parent 1ffaefe commit 621f891

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

brainpy/_src/dependency_check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ def import_braintaichi(error_if_not_found=True):
5252
if importlib.util.find_spec('braintaichi') is not None:
5353
try:
5454
import braintaichi as braintaichi
55-
except ModuleNotFoundError:
55+
except ModuleNotFoundError as e:
5656
if error_if_not_found:
57-
raise_braintaichi_not_found()
57+
raise e
5858
else:
5959
braintaichi = None
6060
else:

0 commit comments

Comments
 (0)