Merge pull request #1998 from paperless-ngx/fix/1993-date-overflow

Bugfix: Don't allow exceptions during date parsing to fail consume
This commit is contained in:
shamoon
2022-11-17 14:31:46 -08:00
committed by GitHub
2 changed files with 7 additions and 2 deletions

View File

@@ -459,7 +459,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.