diff options
author | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2021-10-06 23:09:54 +0200 |
---|---|---|
committer | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2021-10-07 07:55:34 +0200 |
commit | 0c33a85a593825774606bcefd7083a3d97047d1e (patch) | |
tree | bffa8142872931952f9c07d705cd7c210c36de04 /numpy/linalg/lapack_lite | |
parent | 53b98832aee924fdcde19bbc3eefa8bdba5fb3d6 (diff) | |
download | numpy-0c33a85a593825774606bcefd7083a3d97047d1e.tar.gz |
MAINT: LGTM.com recommendation: Except block handles 'BaseException'
Except block directly handles BaseException.
Diffstat (limited to 'numpy/linalg/lapack_lite')
-rwxr-xr-x | numpy/linalg/lapack_lite/make_lite.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/linalg/lapack_lite/make_lite.py b/numpy/linalg/lapack_lite/make_lite.py index 398c27e94..ca8d4c62c 100755 --- a/numpy/linalg/lapack_lite/make_lite.py +++ b/numpy/linalg/lapack_lite/make_lite.py @@ -341,10 +341,7 @@ def main(): lapack_src_dir = sys.argv[2] output_dir = os.path.join(os.path.dirname(__file__), 'build') - try: - shutil.rmtree(output_dir) - except: - pass + shutil.rmtree(output_dir, ignore_errors=True) os.makedirs(output_dir) wrapped_routines, ignores = getWrappedRoutineNames(wrapped_routines_file) |