Skip to content

Commit c384a21

Browse files
committed
fix: restore pragma no cover for uncovered exception handler
1 parent eb0a5f1 commit c384a21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp/server/streamable_http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ async def message_router():
10151015
try:
10161016
# Send both the message and the event ID
10171017
await self._request_streams[request_stream_id][0].send(EventMessage(message, event_id))
1018-
except (anyio.BrokenResourceError, anyio.ClosedResourceError):
1018+
except (anyio.BrokenResourceError, anyio.ClosedResourceError): # pragma: no cover
10191019
# Stream might be closed, remove from registry
10201020
self._request_streams.pop(request_stream_id, None)
10211021
else:

0 commit comments

Comments
 (0)