From 49a6211d368cd053e7019e6a9405c8d8d5d53799 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 28 Jul 2025 11:31:06 +0400 Subject: [PATCH] refac --- backend/open_webui/routers/functions.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/open_webui/routers/functions.py b/backend/open_webui/routers/functions.py index 73b608cd35..b5beb96cf0 100644 --- a/backend/open_webui/routers/functions.py +++ b/backend/open_webui/routers/functions.py @@ -146,15 +146,14 @@ async def sync_functions( function.id, content=function.content, ) + + return Functions.sync_functions(user.id, form_data.functions) except Exception as e: log.exception(f"Failed to load a function: {e}") raise HTTPException( status_code=status.HTTP_400_BAD_REQUEST, detail=ERROR_MESSAGES.DEFAULT(e), ) - - - return Functions.sync_functions(user.id, form_data.functions) ############################