find_reauth_required(
exc: BaseException,
) -> MCPReauthRequiredError | None| Name | Type | Description |
|---|---|---|
exc* | BaseException | Root exception to inspect. |
Find an MCPReauthRequiredError anywhere inside exc's tree.
Walks exceptions (for ExceptionGroup), then __cause__ and
__context__, tracking visited nodes to terminate on cyclic chains.