Skip to content

Commit 9ddc977

Browse files
BoraYaswanthReddyswaroopvarma1
authored andcommitted
fix: Not able to read banner for some merchants
1 parent 2785e1a commit 9ddc977

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • app/agents/voice/automatic/tools/breeze

app/agents/voice/automatic/tools/breeze/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ def remove_html_tags(html_text: str) -> str:
204204
# Find everything between <div>...</div>
205205
match = re.search(r"<div.*?>(.*?)</div>", html_text, flags=re.DOTALL)
206206

207-
if not match:
208-
return ""
209-
210-
content = match.group(1)
207+
if match:
208+
content = match.group(1)
209+
else:
210+
content = html_text
211211
clean_text = re.sub(r"<[^>]*>", "", content).strip()
212212
return clean_text

0 commit comments

Comments
 (0)