Change error logging to warning for missing playwright and protego imports in bs4_crawler.py

This commit is contained in:
Daulet Amirkhanov 2025-10-13 15:35:41 +01:00
parent 9a7f7b0364
commit 04147c3eec

View file

@ -20,7 +20,7 @@ logger = get_logger(__name__)
try:
from playwright.async_api import async_playwright
except ImportError:
logger.error(
logger.warning(
"Failed to import playwright, make sure to install using pip install playwright>=1.9.0"
)
async_playwright = None
@ -28,7 +28,7 @@ except ImportError:
try:
from protego import Protego
except ImportError:
logger.error("Failed to import protego, make sure to install using pip install protego>=0.1")
logger.warning("Failed to import protego, make sure to install using pip install protego>=0.1")
Protego = None