Explorar el Código

refine the warning message for rewrite component (#2429)

### What problem does this PR solve?


### Type of change

- [x] Performance Improvement
tags/v0.11.0
Kevin Hu hace 1 año
padre
commit
d3262ca378
No account linked to committer's email address
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      agent/component/rewrite.py

+ 1
- 1
agent/component/rewrite.py Ver fichero

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

Cargando…
Cancelar
Guardar