mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
better exception logging
This commit is contained in:
parent
d26c46e034
commit
fda2bfbea7
2 changed files with 13 additions and 9 deletions
|
|
@ -246,9 +246,9 @@ class RasterisedDocumentParser(DocumentParser):
|
|||
if original_has_text:
|
||||
self.text = text_original
|
||||
except (NoTextFoundException, InputFileError) as e:
|
||||
self.log("exception",
|
||||
f"Encountered the following error while running OCR, "
|
||||
f"attempting force OCR to get the text.")
|
||||
self.log("warning",
|
||||
f"Encountered an error while running OCR: {str(e)}. "
|
||||
f"Attempting force OCR to get the text.")
|
||||
|
||||
archive_path_fallback = os.path.join(
|
||||
self.tempdir, "archive-fallback.pdf")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue