From 7949ba5ec0543d3b1fd68e95072838fbb3333492 Mon Sep 17 00:00:00 2001 From: Andrew Watson Date: Thu, 1 Jul 2021 14:20:57 -0600 Subject: MAINT: fix overly broad exception handling listed in LGTM Relates to ticket #19077 --- numpy/lib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/utils.py') 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): -- cgit v1.2.1