Raise ParseError from gs rendering error
This commit is contained in:
parent
407a119b9a
commit
762743ec9d
@ -340,7 +340,10 @@ class RasterisedDocumentParser(DocumentParser):
|
||||
"Ghostscript PDF/A rendering failed, consider setting "
|
||||
"PAPERLESS_OCR_USER_ARGS: '{\"continue_on_soft_render_error\": true}'", # noqa: E501
|
||||
)
|
||||
raise e
|
||||
|
||||
raise ParseError(
|
||||
f"SubprocessOutputError: {e!s}. See logs for more information.",
|
||||
) from e
|
||||
except (NoTextFoundException, InputFileError) as e:
|
||||
self.log.warning(
|
||||
f"Encountered an error while running OCR: {e!s}. "
|
||||
|
Loading…
x
Reference in New Issue
Block a user