fix: Don't unlink file blindly

This made sense with the missing_ok. But now, a try-except seems
unnecessary too. Also, possibly destructive. Best to stray away from
these things.
This commit is contained in:
Gavin D'souza 2021-10-18 12:07:42 +05:30
parent f51b1cc739
commit 30c39acabe

View file

@ -507,7 +507,6 @@ def convert_archive_content(sql_file_path):
sql_file_path = Path(sql_file_path)
os.rename(sql_file_path, old_sql_file_path)
sql_file_path.unlink()
sql_file_path.touch()
with open(old_sql_file_path) as r, open(sql_file_path, "a") as w: