mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 09:52:37 +02:00
Handle the case of empty tesseract dirs during download
This commit is contained in:
parent
33b2a183ce
commit
843e68cdf7
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue