mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-05 18:38:17 -05:00
[PR #22420] [MERGED] fix: replace bare except with Exception in oauth.py #49725
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/22420
Author: @gambletan
Created: 3/8/2026
Status: ✅ Merged
Merged: 3/8/2026
Merged by: @tjbck
Base:
dev← Head:fix/bare-except-oauth📝 Commits (2)
cae0603fix: replace bare except with except Exception in main.pya65d5a2fix: replace bare except with Exception in oauth.py📊 Changes
2 files changed (+3 additions, -3 deletions)
View changed files
📝
backend/open_webui/main.py(+2 -2)📝
backend/open_webui/utils/oauth.py(+1 -1)📄 Description
Description
oauth.py, a bareexcept:clause was used which catches all exceptions includingSystemExitandKeyboardInterrupt. This prevents clean process shutdown and makes debugging harder.Fixed
except:withexcept Exception:so thatSystemExit,KeyboardInterrupt, and otherBaseExceptionsubclasses are no longer silently caught.Additional Information
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.