summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2021-07-05 14:56:28 +0300
committerGitHub <noreply@github.com>2021-07-05 14:56:28 +0300
commit4fcea6deac29276605e58b0a011f7ef6d089f66b (patch)
tree408914c504a18e1d7cfffe07edd3fa7aff0d882b /numpy/lib/utils.py
parente69faef03428b82f5651a5fb521610ddea2bd22a (diff)
parent84498b03a2a26c2fbf147d8fe5e70f377bbd6d31 (diff)
downloadnumpy-4fcea6deac29276605e58b0a011f7ef6d089f66b.tar.gz
Merge pull request #19393 from wandrewjam/remove-base-exception
MAINT: fix overly broad exception handling listed in LGTM
Diffstat (limited to 'numpy/lib/utils.py')
-rw-r--r--numpy/lib/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/utils.py b/numpy/lib/utils.py
index 12a7cacdc..b1a916d4a 100644
--- a/numpy/lib/utils.py
+++ b/numpy/lib/utils.py
@@ -904,7 +904,7 @@ def _lookfor_generate_cache(module, import_modules, regenerate):
sys.stdout = old_stdout
sys.stderr = old_stderr
# Catch SystemExit, too
- except BaseException:
+ except (Exception, SystemExit):
continue
for n, v in _getmembers(item):