From 843e68cdf7e97e9903a992ff66a6772e1e307bb2 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Wed, 2 Apr 2025 12:14:35 +0300 Subject: [PATCH] Handle the case of empty tesseract dirs during download --- install/common/download-tessdata.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install/common/download-tessdata.py b/install/common/download-tessdata.py index cf2b366..47c909e 100644 --- a/install/common/download-tessdata.py +++ b/install/common/download-tessdata.py @@ -51,6 +51,8 @@ def main(): if files == expected_files: logger.info("Skipping tessdata download, language data already exists") return + elif not files: + logger.info("Tesseract dir is empty, proceeding to download language data") else: logger.info(f"Found {tessdata_dir} but contents do not match") return 1