mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-29 01:42:19 +00:00
Both handlers only special-cased HTTPException in their except block, so a bare ProxyException (e.g. the ProxyMissingRequiredParamError raised by the previous commit's guard) fell into the generic else branch. That branch reads getattr(e, "status_code", 500), but ProxyException carries the status on .code, not .status_code, so it always defaulted to 500. Re-raise ProxyException instances unchanged, matching the pattern already used in common_request_processing.py's _handle_llm_api_exception. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_azure_routes.py | ||
| test_endpoints.py | ||