summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
authorslepton <slepton@posteo.de>2021-07-07 19:49:38 +0200
committerslepton <slepton@posteo.de>2021-07-07 19:49:38 +0200
commit87db3d1ae9a16edabd8f4818307616d8182d2a12 (patch)
treeda4bad30ee04c07e92a26278e5c26b11b3891339 /numpy/lib/utils.py
parent984593982f0baf4be771cf578635994c88559078 (diff)
parent85d79efbb16e4512227545382a3de869267d1fc9 (diff)
downloadnumpy-87db3d1ae9a16edabd8f4818307616d8182d2a12.tar.gz
Merge remote-tracking branch 'origin/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):