We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26d04ac commit 9588bf5Copy full SHA for 9588bf5
1 file changed
src/mcp/client/grpc_transport_session.py
@@ -165,7 +165,14 @@ async def call_tool(
165
async for response in call:
166
if response.common.HasField("progress"):
167
progress_proto = response.common.progress
168
- progress_token = int(progress_proto.progress_token)
+ progress = progress_proto.progress
169
+ try:
170
+ progress_token = int(progress_proto.progress_token)
171
+ except ValueError:
172
+ logger.warning(
173
+ "Progress token is not an integer: %s",
174
+ progress_proto.progress_token,
175
+ )
176
177
if progress_token in self._progress_callbacks:
178
callback = self._progress_callbacks[progress_token]
0 commit comments