fix: broaden pytesseract import exception catch

This commit is contained in:
alexpolo1
2026-06-11 14:34:29 +02:00
parent 2bfcf0ff02
commit b8479c2300
+1 -1
View File
@@ -105,7 +105,7 @@ def _log_platform_info():
try:
import pytesseract
Logger.warning("OCR backend: pytesseract (fallback — tesserocr missing)")
except ImportError:
except Exception:
Logger.error("OCR backend: NONE — neither tesserocr nor pytesseract is installed")
except Exception as e:
Logger.error(f"OCR backend check failed: {e}")