fix: broaden pytesseract import exception catch
This commit is contained in:
+1
-1
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user