summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
authorAndrew Watson <awatson@math.utah.edu>2021-07-01 14:20:57 -0600
committerAndrew Watson <awatson@math.utah.edu>2021-07-01 14:20:57 -0600
commit7949ba5ec0543d3b1fd68e95072838fbb3333492 (patch)
tree4338ed4999e475d71cca46c7404b43ce98e80cff /numpy/lib/utils.py
parent6d9e294c47e790067e0b5724afecb4e38a542bd0 (diff)
downloadnumpy-7949ba5ec0543d3b1fd68e95072838fbb3333492.tar.gz
MAINT: fix overly broad exception handling listed in LGTM
Relates to ticket #19077
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..bfc58c8bd 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 SystemExit:
continue
for n, v in _getmembers(item):