diff options
author | Andrew Watson <awatson@math.utah.edu> | 2021-07-01 14:20:57 -0600 |
---|---|---|
committer | Andrew Watson <awatson@math.utah.edu> | 2021-07-01 14:20:57 -0600 |
commit | 7949ba5ec0543d3b1fd68e95072838fbb3333492 (patch) | |
tree | 4338ed4999e475d71cca46c7404b43ce98e80cff /numpy/linalg/lapack_lite | |
parent | 6d9e294c47e790067e0b5724afecb4e38a542bd0 (diff) | |
download | numpy-7949ba5ec0543d3b1fd68e95072838fbb3333492.tar.gz |
MAINT: fix overly broad exception handling listed in LGTM
Relates to ticket #19077
Diffstat (limited to 'numpy/linalg/lapack_lite')
-rwxr-xr-x | numpy/linalg/lapack_lite/make_lite.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/linalg/lapack_lite/make_lite.py b/numpy/linalg/lapack_lite/make_lite.py index b145f6c4f..ab409f29b 100755 --- a/numpy/linalg/lapack_lite/make_lite.py +++ b/numpy/linalg/lapack_lite/make_lite.py @@ -275,7 +275,7 @@ def scrubF2CSource(c_file): def ensure_executable(name): try: which(name) - except: + except Exception: raise SystemExit(name + ' not found') def create_name_header(output_dir): |