Skip to content

Commit 8db3e6f

Browse files
authored
Update src/mcp/client/streamable_http.py
1 parent f3d6bb3 commit 8db3e6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mcp/client/streamable_http.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ async def handle_get_stream(self, client: httpx.AsyncClient, read_stream_writer:
200200
# Stream ended normally (server closed) - reset attempt counter
201201
attempt = 0
202202

203-
except Exception as exc:
204-
logger.debug(f"GET stream error: {exc}") # pragma: no cover
205-
attempt += 1 # pragma: no cover
203+
except Exception as exc: # pragma: no cover
204+
logger.debug(f"GET stream error: {exc}")
205+
attempt += 1
206206

207207
if attempt >= MAX_RECONNECTION_ATTEMPTS: # pragma: no cover
208208
logger.debug(f"GET stream max reconnection attempts ({MAX_RECONNECTION_ATTEMPTS}) exceeded")

0 commit comments

Comments
 (0)