summaryrefslogtreecommitdiff
path: root/numpy/matrixlib/defmatrix.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2017-06-03 09:23:04 -0600
committerGitHub <noreply@github.com>2017-06-03 09:23:04 -0600
commite5e2cf89d01d7b09631977482b11df79e8131c6d (patch)
treea530210ff9fa4f44e1e3061af05df3f55ec96c35 /numpy/matrixlib/defmatrix.py
parent0e4610e30aabaf32c037fc94c869a20f2435a8f1 (diff)
parent1608e53072b035bd40de7a202e75354f0e802120 (diff)
downloadnumpy-e5e2cf89d01d7b09631977482b11df79e8131c6d.tar.gz
Merge pull request #9215 from eric-wieser/bare-except
BUG: Avoid bare except clauses
Diffstat (limited to 'numpy/matrixlib/defmatrix.py')
-rw-r--r--numpy/matrixlib/defmatrix.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/matrixlib/defmatrix.py b/numpy/matrixlib/defmatrix.py
index f212a8c5e..2571d56ef 100644
--- a/numpy/matrixlib/defmatrix.py
+++ b/numpy/matrixlib/defmatrix.py
@@ -295,7 +295,7 @@ class matrix(N.ndarray):
# Determine when we should have a column array
try:
n = len(index)
- except:
+ except Exception:
n = 0
if n > 1 and isscalar(index[1]):
out.shape = (sh, 1)