Skip to content

Commit e955efd

Browse files
Update session.py
1 parent 0fe16dd commit e955efd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mcp/shared/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def __exit__(
111111
self._entered = False
112112
if not self._cancel_scope: # pragma: no cover
113113
raise RuntimeError("No active cancel scope")
114-
self._cancel_scope.__exit__(exc_type, exc_val, exc_tb)
114+
return self._cancel_scope.__exit__(exc_type, exc_val, exc_tb)
115115

116116
async def respond(self, response: SendResultT | ErrorData) -> None:
117117
"""Send a response for this request.

0 commit comments

Comments
 (0)