mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
fix(mcp): suppress BLE001 on deliberate broad state-decode catch in /callback
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
f1b5c0e4d5
commit
4022928ac7
1 changed files with 1 additions and 1 deletions
|
|
@ -2243,7 +2243,7 @@ async def callback(
|
|||
encoded_state = _resolve_encoded_oauth_state(request, state)
|
||||
try:
|
||||
state_data = decode_state_hash(encoded_state)
|
||||
except Exception:
|
||||
except Exception: # noqa: BLE001 # any decode failure means the session is unusable; surface it, never crash the callback
|
||||
cookie_present: Final = _oauth_state_cookie_present(request, state)
|
||||
verbose_logger.warning(
|
||||
"MCP /callback could not decode OAuth state (state_cookie_present=%s, request_base_url=%s, "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue