Bug fix: exception from process timeout should be TimeoutExpired

This commit is contained in:
James R. Barlow
2015-07-31 00:06:58 -07:00
parent 6ac7ffd77b
commit 6887e232fc
+1 -1
View File
@@ -661,7 +661,7 @@ def tesseract_ocr_and_render_pdf(
log.info(stdout)
if stderr:
log.error(stderr)
except TimeoutError:
except TimeoutExpired:
p.kill()
log.info("Tesseract - page timed out")
re_symlink(input_pdf, output_file)