This commit is contained in:
ebolam
2022-09-18 20:31:21 -04:00
parent 9084a3bddd
commit fc5a5952f0

View File

@@ -229,7 +229,8 @@ def _download_with_aria2(aria2_config: str, total_length: int, directory: str =
raise e
finally:
try:
os.remove(path)
if os.path.exists(path):
os.remove(path)
except OSError:
pass
code = p.wait()