mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-30 01:52:18 +00:00
fix: apply black formatting to common_request_processing.py
This commit is contained in:
parent
e23728a6a5
commit
fd731f2223
1 changed files with 5 additions and 1 deletions
|
|
@ -1948,7 +1948,11 @@ class ProxyBaseLLMRequestProcessing:
|
|||
# the upstream API response. Use it to return the correct HTTP code
|
||||
# instead of defaulting to 500.
|
||||
_exc_status_code = getattr(e, "status_code", None)
|
||||
if _exc_status_code is not None and isinstance(_exc_status_code, int) and 100 <= _exc_status_code <= 599:
|
||||
if (
|
||||
_exc_status_code is not None
|
||||
and isinstance(_exc_status_code, int)
|
||||
and 100 <= _exc_status_code <= 599
|
||||
):
|
||||
raise ProxyException(
|
||||
message=getattr(e, "message", error_msg),
|
||||
type=getattr(e, "type", "None"),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue