浏览代码

Resume content flow ExecSQL (#4738)

resume content flow, instead of closed with errors.
tags/v0.16.0
so95 8 个月前
父节点
当前提交
a73e1750b6
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      agent/component/exesql.py

+ 2
- 1
agent/component/exesql.py 查看文件

@@ -126,7 +126,8 @@ class ExeSQL(Generate, ABC):
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("")

正在加载...
取消
保存