Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: nonetype in webscraper validation (#6788)

Yeuoly72963d1f1341
diff --git a/api/core/tools/provider/builtin/spider/spiderApp.py b/api/core/tools/provider/builtin/spider/spiderApp.py
index 82c0df19ca9..f0ed64867a1 100644
--- a/api/core/tools/provider/builtin/spider/spiderApp.py
+++ b/api/core/tools/provider/builtin/spider/spiderApp.py
@@ -116,6 +116,7 @@ class Spider:
:param params: Optional dictionary of additional parameters for the scrape request.
:return: JSON response containing the scraping results.
"""
+ params = params or {}
# Add { "return_format": "markdown" } to the params if not already present
if "return_format" not in params:
@@ -143,6 +144,7 @@ class Spider:
:param stream: Boolean indicating if the response should be streamed. Defaults to False.
:return: JSON response or the raw response stream if streaming enabled.
"""
+ params = params or {}
# Add { "return_format": "markdown" } to the params if not already present
if "return_format" not in params: