We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db2ad0f commit 7aa6a55Copy full SHA for 7aa6a55
src/mcp/client/auth/oauth2.py
@@ -441,7 +441,9 @@ async def _handle_token_response(self, response: httpx.Response) -> None:
441
if response.status_code not in {200, 201}:
442
body = await response.aread() # pragma: no cover
443
body_text = body.decode("utf-8") # pragma: no cover
444
- raise OAuthTokenError(f"Token exchange failed ({response.status_code}): {body_text}") # pragma: no cover
+ raise OAuthTokenError( # pragma: no cover
445
+ f"Token exchange failed ({response.status_code}): {body_text}"
446
+ )
447
448
# Parse and validate response with scope validation
449
token_response = await handle_token_response_scopes(response)
0 commit comments