empty kb id for templates (#1429)

### What problem does this PR solve?

### Type of change

- [x] Refactoring
This commit is contained in:
KevinHuSh
2024-07-08 19:10:27 +08:00
committed by GitHub
parent 59417016a8
commit 669d634d74
4 changed files with 7 additions and 7 deletions

View File

@ -54,7 +54,7 @@ class RewriteQuestion(Generate, ABC):
setattr(self, "_loop", 0)
if self._loop >= self._param.loop:
self._loop = 0
raise Exception("Can't find relevant information.")
raise Exception("Maximum loop time exceeds. Can't find relevant information.")
self._loop += 1
q = "Question: "
for r, c in self._canvas.history[::-1]: