8000 BUG: blindly add TypeError to accepted exceptions · numpy/numpy@0202bd6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0202bd6

Browse files
mattipcharris
authored andcommitted
BUG: blindly add TypeError to accepted exceptions
1 parent 1b5b0b4 commit 0202bd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/f2py/crackfortran.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2512,7 +2512,7 @@ def _eval_scalar(value, params):
25122512
value = value.split('_')[0]
25132513
try:
25142514
value = str(eval(value, {}, params))
2515-
except (NameError, SyntaxError):
2515+
except (NameError, SyntaxError, TypeError):
25162516
return value
25172517
except Exception as msg:
25182518
errmess('"%s" in evaluating %r '

0 commit comments

Comments
 (0)
0