fix : possible crash with planner agent if wrong format returned by llm

This commit is contained in:
martin legrand
2025-03-30 17:38:22 +02:00
parent 8ccb6f4d77
commit b34e343535
3 changed files with 2 additions and 2 deletions
-1
View File
@@ -155,7 +155,6 @@ class Browser:
for element in soup(['script', 'style']):
element.decompose()
text = soup.get_text()
lines = (line.strip() for line in text.splitlines())
chunks = (phrase.strip() for line in lines for phrase in line.split(" "))