mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-01 03:17:20 -05:00
[PR #20274] [MERGED] fix: prevent delete_entries_from_collection crash when file is None #80410
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/20274
Author: @Classic298
Created: 12/30/2025
Status: ✅ Merged
Merged: 12/31/2025
Merged by: @tjbck
Base:
dev← Head:fix/issue-015-delete-entries-null-file📝 Commits (1)
5eee4c2fix: prevent delete_entries_from_collection crash when file is None📊 Changes
1 file changed (+5 additions, -0 deletions)
View changed files
📝
backend/open_webui/routers/retrieval.py(+5 -0)📄 Description
Add null check after Files.get_file_by_id() before accessing file.hash. Raises HTTP 404 instead of crashing with AttributeError when file doesn't exist.
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.