From 96f480af7c5cd0a4fe267931cd26631bc314239b Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Fri, 13 Feb 2026 20:04:43 -0800 Subject: [PATCH] Update litellm/proxy/utils.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- litellm/proxy/utils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index 480f7032d97..66cf95f8e6b 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -1222,10 +1222,7 @@ class ProxyLogging: }, } } - if HTTPException is not None: - raise HTTPException(status_code=400, detail=error_detail) - else: - raise Exception(str(error_detail)) + raise HTTPException(status_code=400, detail=error_detail) if result.terminal_action == "modify_response": raise ModifyResponseException(