mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-10-08 15:17:14 +08:00
Ignore more network related errors during websocket communication.
Intermittent network issues during websocket communication should not crash ComfyUi process.
This commit is contained in:
parent
7390ff3b1e
commit
3b8d2385b7
@ -40,7 +40,7 @@ class BinaryEventTypes:
|
|||||||
async def send_socket_catch_exception(function, message):
|
async def send_socket_catch_exception(function, message):
|
||||||
try:
|
try:
|
||||||
await function(message)
|
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))
|
logging.warning("send error: {}".format(err))
|
||||||
|
|
||||||
def get_comfyui_version():
|
def get_comfyui_version():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user