Skip to content

Commit 69d13f8

Browse files
committed
[v1.x] refactor: import SSEError from httpx_sse public API
Backport of #2560. `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). Github-Issue: #2543
1 parent 73d458b commit 69d13f8

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
@@ -8,8 +8,7 @@
88
import httpx
99
from anyio.abc import TaskStatus
1010
from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
11-
from httpx_sse import aconnect_sse
12-
from httpx_sse._exceptions import SSEError
11+
from httpx_sse import SSEError, aconnect_sse
1312

1413
import mcp.types as types
1514
from mcp.shared._httpx_utils import McpHttpClientFactory, create_mcp_http_client

0 commit comments

Comments
 (0)