Skip to content

Commit d4596b7

Browse files
committed
FIX: Explicit
1 parent c32b0d2 commit d4596b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/tests/test_proxy_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
try:
6161
from numpy.exceptions import ComplexWarning
62-
except ImportError: # NumPy < 1.25
62+
except ModuleNotFoundError: # NumPy < 1.25
6363
from numpy import ComplexWarning
6464

6565

0 commit comments

Comments
 (0)