Fix: Rework system check so it won't crash if tesseract is not found (#7640)

This commit is contained in:
Trenton H 2024-09-08 12:17:32 -07:00 committed by GitHub
parent cc25cbc026
commit 3df8be0bc7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21 additions and 15 deletions

View file

@ -78,7 +78,7 @@ def binaries_check(app_configs, **kwargs):
error = "Paperless can't find {}. Without it, consumption is impossible."
hint = "Either it's not in your ${PATH} or it's not installed."
binaries = (settings.CONVERT_BINARY, "tesseract")
binaries = (settings.CONVERT_BINARY, "tesseract", "gs")
check_messages = []
for binary in binaries: