From 6887e232fc220877bce09147e337269af4215681 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Fri, 31 Jul 2015 00:06:58 -0700 Subject: [PATCH] Bug fix: exception from process timeout should be TimeoutExpired --- ocrmypdf/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocrmypdf/main.py b/ocrmypdf/main.py index 6395bcc2..c02c7ad3 100755 --- a/ocrmypdf/main.py +++ b/ocrmypdf/main.py @@ -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)