Skip to content

Commit 9c24e70

Browse files
sicoyleCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 22134fa commit 9c24e70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mcp/client/streamable_http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ async def handle_get_stream(self, client: httpx.AsyncClient, read_stream_writer:
222222
# For other HTTP errors, log and retry
223223
logger.debug(f"GET stream HTTP error: {exc.response.status_code} - {exc}")
224224
attempt += 1
225-
except Exception: # pragma: lax no cover
226-
logger.debug("GET stream error", exc_info=True)
225+
except Exception as exc: # pragma: lax no cover
226+
logger.debug("GET stream error: %s", exc, exc_info=True)
227227
attempt += 1
228228

229229
if attempt >= MAX_RECONNECTION_ATTEMPTS: # pragma: no cover

0 commit comments

Comments
 (0)