From b54d5807f315ec7d1fd3f500d58a3b51d5968d9c Mon Sep 17 00:00:00 2001 From: narendra Date: Thu, 18 Jul 2024 08:30:52 +0530 Subject: [PATCH] =?UTF-8?q?[Bug]:=20IndentationError:=20unindent=20does=20?= =?UTF-8?q?not=20match=20any=20outer=20indentatio=E2=80=A6=20(#1579)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### What problem does this PR solve? _Briefly describe what this PR aims to solve. Include background context that will help reviewers understand the purpose of the PR._ ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) [Bug]: IndentationError: unindent does not match any outer indentation level #1569 --- graph/component/duckduckgo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, ":::::::::::::::::::::::::::::::::")