Simplify unlink

This commit is contained in:
shamoon
2026-01-26 10:42:03 -08:00
parent 63bf29188e
commit b9feba2ca4

View File

@@ -721,11 +721,7 @@ def build_share_link_bundle(bundle_id: int):
pass pass
raise raise
finally: finally:
if temp_zip_path.exists(): temp_zip_path.unlink(missing_ok=True)
try:
temp_zip_path.unlink()
except OSError:
pass
@shared_task @shared_task