diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2025-05-23 14:55:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-23 14:55:22 +0200 |
| commit | 1ef5c03962de29085b63d7df457764a180f36967 (patch) | |
| tree | a397c16ed6051ca264e45a2164f5397094a6fe7f /searx/webapp.py | |
| parent | 4fa7de80334deee51845550c4cfa11f94edb5e88 (diff) | |
[fix] ddg engine: IndexError exception is raised on empty contend (#4843)
Sometimes (e.g. when ddg does not have a result item) there is no content and
the engine will fail with an IndexError:
* Error: IndexError
* Percentage: 10
* Parameters: `()`
* File name: `searx/engines/duckduckgo.py:375`
* Function: `response`
* Code: `item["content"] = extract_text(eval_xpath(div_result, './/a[contains(@class, "result__snippet")]')[0])`
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/webapp.py')
0 files changed, 0 insertions, 0 deletions