Update litellm/proxy/utils.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Ishaan Jaff 2026-02-13 20:04:43 -08:00 committed by GitHub
parent fceabeec15
commit 96f480af7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(