fix: don't send log notification on transport error (#2257)

This commit is contained in:
Max Isbey 2026-03-09 17:47:27 +00:00 • committed by GitHub
commit 62eb08e5b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -334,7 +334,7 @@ class BaseSession(
async with self._read_stream, self._write_stream:
try:
async for message in self._read_stream:
if isinstance(message, Exception): # pragma: no cover
if isinstance(message, Exception):
await self._handle_incoming(message)
elif isinstance(message.message, JSONRPCRequest):
try: