mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-01-18 22:14:22 -06:00
Some random cleanups
This commit is contained in:
@@ -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}: "
|
||||
|
||||
Reference in New Issue
Block a user