mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[PR #22473] [MERGED] fix: replace bare except with except Exception #130374
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/22473
Author: @gambletan
Created: 3/9/2026
Status: ✅ Merged
Merged: 3/15/2026
Merged by: @tjbck
Base:
dev← Head:fix-bare-except📝 Commits (1)
66e49cefix: replace bare except with except Exception📊 Changes
9 files changed (+14 additions, -14 deletions)
View changed files
📝
backend/open_webui/retrieval/loaders/external_document.py(+1 -1)📝
backend/open_webui/retrieval/loaders/mineru.py(+3 -3)📝
backend/open_webui/retrieval/vector/dbs/chroma.py(+1 -1)📝
backend/open_webui/routers/chats.py(+1 -1)📝
backend/open_webui/routers/configs.py(+1 -1)📝
backend/open_webui/routers/pipelines.py(+2 -2)📝
backend/open_webui/routers/retrieval.py(+1 -1)📝
backend/open_webui/socket/main.py(+1 -1)📝
backend/open_webui/utils/middleware.py(+3 -3)📄 Description
Description
Replace bare except clauses with
except Exceptionto follow Python best practices and avoid catching unexpected system exceptions likeKeyboardInterruptandSystemExit.Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.