mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 23:35:22 +01:00
Don't allow an exception when trying to parse a date cause complete failure
This commit is contained in:
parent
0ae8200593
commit
914661fdbb
2 changed files with 7 additions and 2 deletions
|
|
@ -444,7 +444,12 @@ class Consumer(LoggingMixin):
|
|||
|
||||
return document
|
||||
|
||||
def _store(self, text, date, mime_type) -> Document:
|
||||
def _store(
|
||||
self,
|
||||
text: str,
|
||||
date: Optional[datetime.datetime],
|
||||
mime_type: str,
|
||||
) -> Document:
|
||||
|
||||
# If someone gave us the original filename, use it instead of doc.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue