From 409f565f09bd554dd211f63c75aba3f2044e714d Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 17 Jan 2026 21:41:48 +0400 Subject: [PATCH] refac --- backend/open_webui/routers/files.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/open_webui/routers/files.py b/backend/open_webui/routers/files.py index e3dd63525a..130d0486bb 100644 --- a/backend/open_webui/routers/files.py +++ b/backend/open_webui/routers/files.py @@ -332,6 +332,8 @@ def upload_file_handler( detail=ERROR_MESSAGES.DEFAULT("Error uploading file"), ) + except HTTPException as e: + raise e except Exception as e: log.exception(e) raise HTTPException(