From b9bbf2258173301ba3b9be11a5b170ef6189a991 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 27 Oct 2025 16:46:49 -0700 Subject: [PATCH] refac --- backend/open_webui/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/main.py b/backend/open_webui/main.py index 14ee4dc870..105fc5c337 100644 --- a/backend/open_webui/main.py +++ b/backend/open_webui/main.py @@ -2066,8 +2066,8 @@ async def oauth_client_authorize( client_id, ) - re_registered = await register_client(request, client_id) - if not re_registered: + registered = await register_client(request, client_id) + if not registered: raise HTTPException( status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail="Failed to re-register OAuth client",