mirror of
https://github.com/aljazceru/mcp-python-sdk.git
synced 2025-12-20 15:24:25 +01:00
Strict types on the client side (#285)
This commit is contained in:
committed by
GitHub
parent
7196604468
commit
97201cce59
@@ -98,6 +98,10 @@ async def sse_client(
|
||||
continue
|
||||
|
||||
await read_stream_writer.send(message)
|
||||
case _:
|
||||
logger.warning(
|
||||
f"Unknown SSE event: {sse.event}"
|
||||
)
|
||||
except Exception as exc:
|
||||
logger.error(f"Error in sse_reader: {exc}")
|
||||
await read_stream_writer.send(exc)
|
||||
|
||||
Reference in New Issue
Block a user