From 52ab2421bb5aeba38ec47bbb88b75d21d8793387 Mon Sep 17 00:00:00 2001 From: Greg Becker Date: Tue, 28 Jan 2020 12:49:26 -0800 Subject: [PATCH] Fix handling of filter_file exceptions (#14651) --- lib/spack/llnl/util/filesystem.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/spack/llnl/util/filesystem.py b/lib/spack/llnl/util/filesystem.py index d525884ee9..273840a424 100644 --- a/lib/spack/llnl/util/filesystem.py +++ b/lib/spack/llnl/util/filesystem.py @@ -201,7 +201,6 @@ def groupid_to_group(x): output_file.writelines(input_file.readlines()) except BaseException: - os.remove(tmp_filename) # clean up the original file on failure. shutil.move(backup_filename, filename) raise