Resume content flow ExecSQL (#4738)

resume content flow, instead of closed with errors.
This commit is contained in:
so95 2025-02-06 11:09:47 +07:00 committed by GitHub
parent c1d71e9a3f
commit a73e1750b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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("")