mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-03-27 19:32:45 +00:00
Update consumer.py
This commit is contained in:
@@ -176,7 +176,8 @@ class ConsumerPluginMixin:
|
||||
self.log.error(log_message or message, exc_info=exc_info)
|
||||
# Move the file to the failed directory
|
||||
if self.input_doc.original_file.exists():
|
||||
self.input_doc.original_file.rename(
|
||||
copy_file_with_basic_stats(
|
||||
self.input_doc.original_file,
|
||||
settings.CONSUMPTION_FAILED_DIR / self.input_doc.original_file.name,
|
||||
)
|
||||
raise ConsumerError(f"{self.filename}: {log_message or message}") from exception
|
||||
|
||||
Reference in New Issue
Block a user