fix(crawler): initialize captured_console variable for local file processing

This commit is contained in:
ntohidi 2025-05-02 10:35:35 +02:00
parent 1d6a2b9979
commit e0cd3e10de

View File

@ -445,6 +445,7 @@ class AsyncPlaywrightCrawlerStrategy(AsyncCrawlerStrategy):
return await self._crawl_web(url, config)
elif url.startswith("file://"):
captured_console = None
# Process local file
local_file_path = url[7:] # Remove 'file://' prefix
if not os.path.exists(local_file_path):