MCPcopy Create free account
hub / github.com/Comfy-Org/ComfyUI / send_socket_catch_exception

Function send_socket_catch_exception

server.py:72–76  ·  view source on GitHub ↗
(function, message)

Source from the content-addressed store, hash-verified

70
71
72async def send_socket_catch_exception(function, message):
73 try:
74 await function(message)
75 except (aiohttp.ClientError, aiohttp.ClientPayloadError, ConnectionResetError, BrokenPipeError, ConnectionError) as err:
76 logging.warning("send error: {}".format(err))
77
78# Track deprecated paths that have been warned about to only warn once per file
79_deprecated_paths_warned = set()

Callers 2

send_bytesMethod · 0.85
send_jsonMethod · 0.85

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected