Skip to content

Commit 6165b2e

Browse files
committed
revert: undo session.py pragma change (speculative, bad evidence)
The session.py:426 flag appeared exactly once across 10 runs, and that one run was the only one with a confounding test edit in place. CI has never flagged this line; 8 clean local runs never flagged it either. The original pragma was correct.
1 parent 166f649 commit 6165b2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp/shared/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ async def _receive_loop(self) -> None:
423423
try:
424424
await stream.send(JSONRPCError(jsonrpc="2.0", id=id, error=error))
425425
await stream.aclose()
426-
except Exception: # pragma: lax no cover
426+
except Exception: # pragma: no cover
427427
# Stream might already be closed
428428
pass
429429
self._response_streams.clear()

0 commit comments

Comments
 (0)