mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 07:45:32 +01:00
small changes
This commit is contained in:
parent
cb2340539d
commit
391020a2b0
3 changed files with 13 additions and 13 deletions
|
|
@ -223,9 +223,9 @@ class Consumer(LoggingMixin):
|
|||
self.log("debug", "Deleting file {}".format(self.path))
|
||||
os.unlink(self.path)
|
||||
except Exception as e:
|
||||
raise ConsumerError(e)
|
||||
self._send_progress(file, 100, 100, 'FAILED',
|
||||
self._send_progress(self.filename, 100, 100, 'FAILED',
|
||||
"Failed: {}".format(e))
|
||||
raise ConsumerError(e)
|
||||
finally:
|
||||
document_parser.cleanup()
|
||||
|
||||
|
|
@ -234,7 +234,7 @@ class Consumer(LoggingMixin):
|
|||
"Document {} consumption finished".format(document)
|
||||
)
|
||||
|
||||
self._send_progress(file, 100, 100, 'SUCCESS',
|
||||
self._send_progress(self.filename, 100, 100, 'SUCCESS',
|
||||
'Finished.', document.id)
|
||||
|
||||
return document
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue