Skip to content

Commit

Permalink
Ignore more network related errors during websocket communication. (#…
Browse files Browse the repository at this point in the history
…5269)

Intermittent network issues during websocket communication should not crash ComfyUi process.

Co-authored-by: Xiaodong Xie <[email protected]>
  • Loading branch information
xiaodong-xie and xxd-frever authored Oct 17, 2024
1 parent 6715899 commit 89f1589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 89f1589

Please sign in to comment.