diff --git a/src/mcp/client/auth/oauth2.py b/src/mcp/client/auth/oauth2.py index 9e176980a..0e07cf8d7 100644 --- a/src/mcp/client/auth/oauth2.py +++ b/src/mcp/client/auth/oauth2.py @@ -269,8 +269,6 @@ async def _handle_protected_resource_response(self, response: httpx.Response) -> except ValidationError: pass - else: - raise OAuthFlowError(f"Protected Resource Metadata request failed: {response.status_code}") def _select_scopes(self, init_response: httpx.Response) -> None: """Select scopes as outlined in the 'Scope Selection Strategy in the MCP spec."""