Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Ignore more network related errors during websocket communication. (#5269)

Xiaodong Xie89f15894dde9
diff --git a/server.py b/server.py
index c7bf6622d..ada6d90c3 100644
--- a/server.py
+++ b/server.py
@@ -40,7 +40,7 @@ class BinaryEventTypes:
async def send_socket_catch_exception(function, message):
try:
await function(message)
- except (aiohttp.ClientError, aiohttp.ClientPayloadError, ConnectionResetError) as err:
+ except (aiohttp.ClientError, aiohttp.ClientPayloadError, ConnectionResetError, BrokenPipeError, ConnectionError) as err:
logging.warning("send error: {}".format(err))
def get_comfyui_version():