Skip to content

Commit e4c5b52

Browse files
committed
BF: exception string matching for not implemented in numpy 1.7.1
1 parent 0fb8920 commit e4c5b52

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nibabel/cmdline/diff.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ def are_values_different(*values):
6161
if not np.any(value0_nans):
6262
value0_nans = None
6363
except TypeError as exc:
64-
if "not supported" in str(exc):
64+
str_exc = str(exc)
65+
# Not implemented in numpy 1.7.1
66+
if "not supported" in str_exc or "ot implemented" in str_exc:
6567
value0_nans = None
6668
else:
6769
raise

0 commit comments

Comments
 (0)