Kevin Hu commited on
Commit
dba7799
·
1 Parent(s): 278278b

refine the warning message for rewrite component (#2429)

Browse files

### What problem does this PR solve?


### Type of change

- [x] Performance Improvement

Files changed (1) hide show
  1. agent/component/rewrite.py +1 -1
agent/component/rewrite.py CHANGED
@@ -54,7 +54,7 @@ class RewriteQuestion(Generate, ABC):
54
  setattr(self, "_loop", 0)
55
  if self._loop >= self._param.loop:
56
  self._loop = 0
57
- raise Exception("Maximum loop time exceeds. Can't find relevant information.")
58
  self._loop += 1
59
  q = "Question: "
60
  for r, c in self._canvas.history[::-1]:
 
54
  setattr(self, "_loop", 0)
55
  if self._loop >= self._param.loop:
56
  self._loop = 0
57
+ raise Exception("Sorry! Nothing relevant found.")
58
  self._loop += 1
59
  q = "Question: "
60
  for r, c in self._canvas.history[::-1]: