Change error logging to warning for missing playwright and protego imports in bs4_crawler.py
This commit is contained in:
parent
9a7f7b0364
commit
04147c3eec
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue