mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 08:15:27 +01:00
Extended exception handling
This commit is contained in:
parent
c74bb84c83
commit
39f198138a
1 changed files with 4 additions and 1 deletions
|
|
@ -200,7 +200,10 @@ class RasterisedDocumentParser(DocumentParser):
|
|||
return text
|
||||
|
||||
def get_date(self):
|
||||
text = self.get_text()
|
||||
try:
|
||||
text = self.get_text()
|
||||
except ParseError as e:
|
||||
return None
|
||||
|
||||
# This regular expression will try to find dates in the document at
|
||||
# hand and will match the following formats:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue