mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
style(mcp): drop impossible-scenario handling around the challenge header read
This commit is contained in:
parent
109a1637a0
commit
c6d65670c4
1 changed files with 1 additions and 5 deletions
|
|
@ -94,11 +94,7 @@ def upstream_auth_challenge(exc: BaseException) -> tuple[int, str | None] | None
|
|||
response = _find_upstream_response(exc)
|
||||
if response is None or response.status_code not in (401, 403):
|
||||
return None
|
||||
try:
|
||||
challenge = response.headers.get("www-authenticate")
|
||||
except Exception:
|
||||
challenge = None
|
||||
return response.status_code, challenge
|
||||
return response.status_code, response.headers.get("www-authenticate")
|
||||
|
||||
|
||||
def raise_classified_list_failure(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue