Skip to content

Commit 8766fcc

Browse files
kxbnbclaude
andcommitted
fix: remove pragma no cover from except branch now covered by test
The except Exception handler in _handle_sse_response is now exercised by the new test, so strict-no-cover rejects the pragma. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 51c62fd commit 8766fcc

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
@@ -358,7 +358,7 @@ async def _handle_sse_response(
358358
await response.aclose()
359359
return # Normal completion, no reconnect needed
360360
except Exception:
361-
logger.debug("SSE stream ended", exc_info=True) # pragma: no cover
361+
logger.debug("SSE stream ended", exc_info=True)
362362

363363
# Stream ended without response - reconnect if we have an event ID,
364364
# otherwise notify the session that the connection is dead (#1811)

0 commit comments

Comments
 (0)