From 61b69db60cceff6c46ff308d2c10f7f81480788c Mon Sep 17 00:00:00 2001 From: Antonio Curado Date: Mon, 20 May 2024 18:29:55 +0200 Subject: [PATCH] Correct handle exceptions in `legacy/broadcast` --- src/websockets/legacy/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/websockets/legacy/protocol.py b/src/websockets/legacy/protocol.py index 67161019..3d09440e 100644 --- a/src/websockets/legacy/protocol.py +++ b/src/websockets/legacy/protocol.py @@ -1630,5 +1630,5 @@ def broadcast( exc_info=True, ) - if raise_exceptions: + if raise_exceptions and exceptions: raise ExceptionGroup("skipped broadcast", exceptions)