summaryrefslogtreecommitdiff
path: root/numpy/polynomial/legendre.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/polynomial/legendre.py')
-rw-r--r--numpy/polynomial/legendre.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/polynomial/legendre.py b/numpy/polynomial/legendre.py
index be8410b82..5a263ef89 100644
--- a/numpy/polynomial/legendre.py
+++ b/numpy/polynomial/legendre.py
@@ -1026,7 +1026,7 @@ def legval2d(x, y, c):
"""
try:
x, y = np.array((x, y), copy=0)
- except:
+ except Exception:
raise ValueError('x, y are incompatible')
c = legval(x, c)
@@ -1139,7 +1139,7 @@ def legval3d(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 = legval(x, c)