mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
refactor(mcp): drop bridge relay status check made unreachable by the unified relay
The try/except around the registration post now relays every upstream 4xx/5xx for both arms, so the bridge_relay status_code check could never fire; removing it addresses the Greptile P2 dead-code finding
This commit is contained in:
parent
f90382584b
commit
e940199a00
1 changed files with 0 additions and 2 deletions
|
|
@ -1531,8 +1531,6 @@ async def register_client_with_server(
|
|||
status_code=502,
|
||||
detail="MCP upstream registration endpoint returned no response",
|
||||
)
|
||||
if bridge_relay and response.status_code >= 400:
|
||||
raise HTTPException(status_code=response.status_code, detail=_safe_upstream_error_detail(response))
|
||||
|
||||
token_response = response.json()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue