mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 08:21:12 -05:00
[PR #22416] [CLOSED] fix: handle missing XML elements in Yandex search results #97711
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22416
Author: @gambletan
Created: 3/8/2026
Status: ❌ Closed
Base:
main← Head:fix/yandex-search-nonetype-crash📝 Commits (1)
956ba6cfix: handle missing XML elements in Yandex search results📊 Changes
1 file changed (+4 additions, -1 deletions)
View changed files
📝
backend/open_webui/retrieval/web/yandex.py(+4 -1)📄 Description
Summary
Noneguard toxml_element_contents_to_string()inbackend/open_webui/retrieval/web/yandex.pyElement.find()returnsNonewhen the XPath does not match (e.g., a search result lacks adoc/passages/passageelement), and passingNoneto this function causesAttributeError: 'NoneType' object has no attribute 'text'Test plan
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.