Strict types on the client side (#285)

This commit is contained in:
Marcelo Trylesinski 2025-03-14 11:56:48 +01:00 • committed by GitHub
commit 97201cce59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,6 +98,10 @@ async def sse_client(
continue
await read_stream_writer.send(message)
case _:
logger.warning(
f"Unknown SSE event: {sse.event}"
)
except Exception as exc:
logger.error(f"Error in sse_reader: {exc}")
await read_stream_writer.send(exc)