Some random cleanups

This commit is contained in:
shamoon
2026-01-18 14:49:43 -08:00
parent 681ae581bd
commit 47ddb266dd
2 changed files with 3 additions and 13 deletions

View File

@@ -806,14 +806,7 @@ class ConsumerPreflightPlugin(
or str(duplicate.pk)
)
try:
Path(self.input_doc.original_file).unlink()
except FileNotFoundError:
pass
except Exception as exc: # pragma: no cover
self.log.warning(
f"Could not delete duplicate file {self.input_doc.original_file}: {exc}",
)
Path(self.input_doc.original_file).unlink()
failure_msg = (
f"Not consuming {self.filename}: "