Skip to content

Commit e954b70

Browse files
test: remove unnecessary coverage pragmas
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 1afda38 commit e954b70

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/mcp/shared/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ async def _handle_session_message(message: SessionMessage) -> None:
440440
except Exception as e:
441441
# Other exceptions are not expected and should be logged. We purposefully
442442
# catch all exceptions here to avoid crashing the server.
443-
logging.exception(f"Unhandled exception in receive loop: {e}") # pragma: no cover
443+
logging.exception(f"Unhandled exception in receive loop: {e}")
444444
finally:
445445
# after the read stream is closed, we need to send errors
446446
# to any pending requests
@@ -516,7 +516,7 @@ async def _handle_response(self, message: SessionMessage) -> None:
516516
if stream:
517517
await stream.send(message.message)
518518
else:
519-
logging.warning( # pragma: no cover
519+
logging.warning(
520520
"Received response with unknown request ID %r — dropping (request may have timed out)", response_id
521521
)
522522

0 commit comments

Comments
 (0)