Original PR: https://github.com/open-webui/open-webui/pull/22407 Author: @gambletan Created: 3/8/2026 Status: ❌ Closed
Base: main ← Head: fix/bare-except-clauses
main
fix/bare-except-clauses
5b69043
11 files changed (+17 additions, -17 deletions)
📝 backend/open_webui/main.py (+2 -2) 📝 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) 📝 backend/open_webui/utils/oauth.py (+1 -1)
backend/open_webui/main.py
backend/open_webui/retrieval/loaders/external_document.py
backend/open_webui/retrieval/loaders/mineru.py
backend/open_webui/retrieval/vector/dbs/chroma.py
backend/open_webui/routers/chats.py
backend/open_webui/routers/configs.py
backend/open_webui/routers/pipelines.py
backend/open_webui/routers/retrieval.py
backend/open_webui/socket/main.py
backend/open_webui/utils/middleware.py
backend/open_webui/utils/oauth.py
except:
except Exception:
BaseException
SystemExit
KeyboardInterrupt
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
No dependencies set.
The note is not visible to the blocked user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22407
Author: @gambletan
Created: 3/8/2026
Status: ❌ Closed
Base:
main← Head:fix/bare-except-clauses📝 Commits (1)
5b69043fix: replace bare except clauses with except Exception📊 Changes
11 files changed (+17 additions, -17 deletions)
View changed files
📝
backend/open_webui/main.py(+2 -2)📝
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)📝
backend/open_webui/utils/oauth.py(+1 -1)📄 Description
Summary
except:clauses withexcept Exception:across the backend codebaseexcept:catchesBaseException, includingSystemExitandKeyboardInterrupt, which prevents clean shutdown and Ctrl+C signal handlingFiles Changed
backend/open_webui/main.pybackend/open_webui/socket/main.pybackend/open_webui/utils/middleware.pybackend/open_webui/utils/oauth.pybackend/open_webui/routers/configs.pybackend/open_webui/routers/retrieval.pybackend/open_webui/routers/chats.pybackend/open_webui/routers/pipelines.pybackend/open_webui/retrieval/vector/dbs/chroma.pybackend/open_webui/retrieval/loaders/mineru.pybackend/open_webui/retrieval/loaders/external_document.pyTest plan
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.