Skip to content

Commit 25a20a2

Browse files
author
skyvanguard
committed
fix: remove unnecessary pragma on now-covered exception handler
The SSE stream disconnect test now exercises this code path, making the pragma: no cover annotation invalid per strict-no-cover. Github-Issue:#1811
1 parent 355584b commit 25a20a2

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
@@ -334,7 +334,7 @@ async def _handle_sse_response(
334334
await response.aclose()
335335
return # Normal completion, no reconnect needed
336336
except Exception as e:
337-
logger.debug(f"SSE stream ended: {e}") # pragma: no cover
337+
logger.debug(f"SSE stream ended: {e}")
338338

339339
# Stream ended without response - reconnect if we received an event with ID
340340
if last_event_id is not None:

0 commit comments

Comments
 (0)