mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-04-23 06:30:00 +08:00
Resume content flow ExecSQL (#4738)
resume content flow, instead of closed with errors.
This commit is contained in:
parent
c1d71e9a3f
commit
a73e1750b6
@ -126,7 +126,8 @@ class ExeSQL(Generate, ABC):
|
|||||||
single_sql = self._regenerate_sql(single_sql, str(e), **kwargs)
|
single_sql = self._regenerate_sql(single_sql, str(e), **kwargs)
|
||||||
single_sql = self._refactor(single_sql)
|
single_sql = self._refactor(single_sql)
|
||||||
if self._loop > self._param.loop:
|
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()
|
db.close()
|
||||||
if not sql_res:
|
if not sql_res:
|
||||||
return ExeSQL.be_output("")
|
return ExeSQL.be_output("")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user