Skip to content

Commit ece451e

Browse files
committed
fix: use lax no cover for GET stream exception handler
This handler may be triggered in some CI configurations, so use lax to avoid strict-no-cover failures while still excluding from coverage.
1 parent 6d22ff0 commit ece451e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp/client/streamable_http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ async def handle_get_stream(self, client: httpx.AsyncClient, read_stream_writer:
200200
# Stream ended normally (server closed) - reset attempt counter
201201
attempt = 0
202202

203-
except Exception as exc: # pragma: no cover
203+
except Exception as exc: # pragma: lax no cover
204204
logger.debug(f"GET stream error: {exc}")
205205
attempt += 1
206206

0 commit comments

Comments
 (0)