diff --git a/crawl4ai/web_crawler.py b/crawl4ai/web_crawler.py index e0059101..7385a7d7 100644 --- a/crawl4ai/web_crawler.py +++ b/crawl4ai/web_crawler.py @@ -112,6 +112,8 @@ class WebCrawler: parsed_json.extend(future.result()) parsed_json = json.dumps(parsed_json) + else: + parsed_json = "{}" # Cache the result cleaned_html = beautify_html(cleaned_html)