diff --git a/graph/component/duckduckgo.py b/graph/component/duckduckgo.py index 06928445b..bf7713e62 100644 --- a/graph/component/duckduckgo.py +++ b/graph/component/duckduckgo.py @@ -57,8 +57,8 @@ class DuckDuckGo(ComponentBase, ABC): duck_res = [{"content": '' + i["title"] + ' ' + i["body"]} for i in ddgs.news(ans, max_results=self._param.top_n)] - if not duck_res: - return DuckDuckGo.be_output("") + if not duck_res: + return DuckDuckGo.be_output("") df = pd.DataFrame(duck_res) if DEBUG: print(df, ":::::::::::::::::::::::::::::::::")