mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #8249] [MERGED] fix: raise exceptions properly in process_chat_payload #61049
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/8249
Author: @albinvar
Created: 1/1/2025
Status: ✅ Merged
Merged: 1/2/2025
Merged by: @tjbck
Base:
dev← Head:main📝 Commits (2)
4bc9904Merge pull request #8159 from open-webui/devc561eb7fix: raise exceptions properly in process_chat_payload📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/open_webui/utils/middleware.py(+1 -1)📄 Description
Changed return to raise to ensure the exception propagates correctly to the caller and triggers proper error handling.
4bc9904b3c/backend/open_webui/utils/middleware.py (L647)Using raise ensures the exception is thrown upwards, allowing the API handler to catch it and respond with a proper HTTP error code.
Issue Reference #8248
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.