summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
authorslepton <slepton@posteo.de>2021-07-07 08:40:10 +0200
committerGitHub <noreply@github.com>2021-07-07 08:40:10 +0200
commit85d79efbb16e4512227545382a3de869267d1fc9 (patch)
treeafb1ec2f83c11c3ec9537417ece87a8cb2b1f5d0 /numpy/lib/utils.py
parent4cc9ef18a6eff5cd46bae4af615de64cdcb3fd37 (diff)
parent3d83143c2c2f877ee921c4c7c6746d836c459839 (diff)
downloadnumpy-85d79efbb16e4512227545382a3de869267d1fc9.tar.gz
Merge branch 'numpy:main' into main
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):