Skip to content

Commit

Permalink
Merge branch 'main' of github.com:infiniflow/ragflow into chat
Browse files Browse the repository at this point in the history
  • Loading branch information
cike8899 committed Feb 6, 2025
2 parents 4ea657d + a73e175 commit 3935665
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agent/component/exesql.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ def _run(self, history, **kwargs):
single_sql = self._regenerate_sql(single_sql, str(e), **kwargs)
single_sql = self._refactor(single_sql)
if self._loop > self._param.loop:
raise Exception("Maximum loop time exceeds. Can't query the correct data via SQL statement.")
sql_res.append({"content": "Can't query the correct data via SQL statement."})
# raise Exception("Maximum loop time exceeds. Can't query the correct data via SQL statement.")
db.close()
if not sql_res:
return ExeSQL.be_output("")
Expand Down

0 comments on commit 3935665

Please sign in to comment.