summaryrefslogtreecommitdiff
path: root/numpy/polynomial/polynomial.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-06-03 13:41:26 +0100
committerEric Wieser <wieser.eric@gmail.com>2017-06-03 13:59:51 +0100
commit1608e53072b035bd40de7a202e75354f0e802120 (patch)
treea530210ff9fa4f44e1e3061af05df3f55ec96c35 /numpy/polynomial/polynomial.py
parent0e4610e30aabaf32c037fc94c869a20f2435a8f1 (diff)
downloadnumpy-1608e53072b035bd40de7a202e75354f0e802120.tar.gz
BUG: KeyboardInterrupt is swallowed all over the place
Bare except is very rarely the right thing
Diffstat (limited to 'numpy/polynomial/polynomial.py')
-rw-r--r--numpy/polynomial/polynomial.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/polynomial/polynomial.py b/numpy/polynomial/polynomial.py
index c357b48c9..4b343bf7d 100644
--- a/numpy/polynomial/polynomial.py
+++ b/numpy/polynomial/polynomial.py
@@ -913,7 +913,7 @@ def polyval2d(x, y, c):
"""
try:
x, y = np.array((x, y), copy=0)
- except:
+ except Exception:
raise ValueError('x, y are incompatible')
c = polyval(x, c)
@@ -1026,7 +1026,7 @@ def polyval3d(x, y, z, c):
"""
try:
x, y, z = np.array((x, y, z), copy=0)
- except:
+ except Exception:
raise ValueError('x, y, z are incompatible')
c = polyval(x, c)