From 82f393dd096a5895c23cb2b43b9de2b23607d84d Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Thu, 30 Jan 2020 12:40:19 -0800 Subject: [PATCH] Order of events --- misc/watcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/watcher.py b/misc/watcher.py index d06108e4..427a23bc 100644 --- a/misc/watcher.py +++ b/misc/watcher.py @@ -69,8 +69,8 @@ def execute_ocrmypdf(file_path): log.info("-" * 20) log.info(f'New file: {file_path}. Waiting until fully loaded...') - log.info(f'Attempting to OCRmyPDF to: {output_path}') wait_for_file_ready(file_path) + log.info(f'Attempting to OCRmyPDF to: {output_path}') exit_code = ocrmypdf.ocr( input_file=file_path, output_file=output_path, deskew=DESKEW )