mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2025-11-17 10:34:48 +00:00
Prevent running validation on missing file after an exception is thrown
This commit is contained in:
parent
83f9dfbac4
commit
c4f134d694
@ -899,6 +899,7 @@ def run_pipeline():
|
|||||||
return eval(
|
return eval(
|
||||||
exc_value,
|
exc_value,
|
||||||
{'ExitCode': ExitCode}, {'exc_value': exc_value})
|
{'ExitCode': ExitCode}, {'exc_value': exc_value})
|
||||||
|
return ExitCode.other_error
|
||||||
|
|
||||||
if not validate_pdfa(options.output_file, _log):
|
if not validate_pdfa(options.output_file, _log):
|
||||||
_log.warning('Output file: The generated PDF/A file is INVALID')
|
_log.warning('Output file: The generated PDF/A file is INVALID')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user