Fix handling of filter_file exceptions (#14651)
This commit is contained in:
parent
67c6d99219
commit
52ab2421bb
1 changed files with 0 additions and 1 deletions
|
@ -201,7 +201,6 @@ def groupid_to_group(x):
|
||||||
output_file.writelines(input_file.readlines())
|
output_file.writelines(input_file.readlines())
|
||||||
|
|
||||||
except BaseException:
|
except BaseException:
|
||||||
os.remove(tmp_filename)
|
|
||||||
# clean up the original file on failure.
|
# clean up the original file on failure.
|
||||||
shutil.move(backup_filename, filename)
|
shutil.move(backup_filename, filename)
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in a new issue