We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fe16dd commit e955efdCopy full SHA for e955efd
1 file changed
src/mcp/shared/session.py
@@ -111,7 +111,7 @@ def __exit__(
111
self._entered = False
112
if not self._cancel_scope: # pragma: no cover
113
raise RuntimeError("No active cancel scope")
114
- self._cancel_scope.__exit__(exc_type, exc_val, exc_tb)
+ return self._cancel_scope.__exit__(exc_type, exc_val, exc_tb)
115
116
async def respond(self, response: SendResultT | ErrorData) -> None:
117
"""Send a response for this request.
0 commit comments