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:
parent
f51b1cc739
commit
30c39acabe
1 changed files with 0 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue