Skip to content

Commit 66487a2

Browse files
committed
refactor: import SSEError from httpx_sse public API
`SSEError` is re-exported at the `httpx_sse` package top level and listed in `__all__` in every release >=0.4.0; the `_exceptions` submodule is private. Importing via the public path avoids breakage if httpx-sse reorganises its internals. No behaviour change (same class object).
1 parent 2b0da56 commit 66487a2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/mcp/client/sse.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
import anyio
88
import httpx
99
from anyio.abc import TaskStatus
10-
from httpx_sse import aconnect_sse
11-
from httpx_sse._exceptions import SSEError
10+
from httpx_sse import SSEError, aconnect_sse
1211

1312
from mcp import types
1413
from mcp.shared._context_streams import create_context_streams

0 commit comments

Comments
 (0)