summaryrefslogtreecommitdiff
path: root/numpy/lib/npyio.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/lib/npyio.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/lib/npyio.py')
-rw-r--r--numpy/lib/npyio.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py
index dc1c951e7..cb3b7534d 100644
--- a/numpy/lib/npyio.py
+++ b/numpy/lib/npyio.py
@@ -424,7 +424,7 @@ def load(file, mmap_mode=None, allow_pickle=True, fix_imports=True,
"non-pickled data")
try:
return pickle.load(fid, **pickle_kwargs)
- except:
+ except Exception:
raise IOError(
"Failed to interpret file %s as a pickle" % repr(file))
finally: