fix(crawler): initialize captured_console variable for local file processing
This commit is contained in:
@@ -445,6 +445,7 @@ class AsyncPlaywrightCrawlerStrategy(AsyncCrawlerStrategy):
|
|||||||
return await self._crawl_web(url, config)
|
return await self._crawl_web(url, config)
|
||||||
|
|
||||||
elif url.startswith("file://"):
|
elif url.startswith("file://"):
|
||||||
|
captured_console = None
|
||||||
# Process local file
|
# Process local file
|
||||||
local_file_path = url[7:] # Remove 'file://' prefix
|
local_file_path = url[7:] # Remove 'file://' prefix
|
||||||
if not os.path.exists(local_file_path):
|
if not os.path.exists(local_file_path):
|
||||||
|
|||||||
Reference in New Issue
Block a user