fix(crawler): simplify page retrieval logic in AsyncPlaywrightCrawlerStrategy

This commit is contained in:
UncleCode 2025-04-08 17:43:36 +08:00
parent 5b66208a7e
commit 02e627e0bd

View File

@ -505,10 +505,7 @@ class AsyncPlaywrightCrawlerStrategy(AsyncCrawlerStrategy):
)
# Get page for session
try:
page, context, _ = await self.browser_manager.get_page(crawlerRunConfig=config)
except Exception as e:
page, context = await self.browser_manager.get_page(crawlerRunConfig=config)
page, context = await self.browser_manager.get_page(crawlerRunConfig=config)
# await page.goto(URL)