Skip to content

Commit 52ab242

Browse files
authored
Fix handling of filter_file exceptions (spack#14651)
1 parent 67c6d99 commit 52ab242

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/spack/llnl/util/filesystem.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ def groupid_to_group(x):
201201
output_file.writelines(input_file.readlines())
202202

203203
except BaseException:
204-
os.remove(tmp_filename)
205204
# clean up the original file on failure.
206205
shutil.move(backup_filename, filename)
207206
raise

0 commit comments

Comments
 (0)