mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #24192] fix: handle ddgs.text() returning None (ddgs >= 9.x API change) #50542
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/24192
Author: @PHclaw
Created: 4/28/2026
Status: 🔄 Open
Base:
main← Head:fix/ddgs-none-check📝 Commits (1)
f7ce612fix: handle ddgs.text() returning None (ddgs >= 9.x API change)📊 Changes
1 file changed (+4 additions, -1 deletions)
View changed files
📝
backend/open_webui/retrieval/web/duckduckgo.py(+4 -1)📄 Description
Summary
ddgs >= 9.x changed the API:
ddgs.text()now returnsNoneinstead of an empty list when the backend is unavailable, rate-limited, or encounters other errors. The existing code assumed it always returns a list, causing:Changes
backend/open_webui/retrieval/web/duckduckgo.py:Closes #24188
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.