MCPcopy Create free account
hub / github.com/NVIDIA/SkillSpector / _handler

Function _handler

contrib/multilingual/runner.py:283–287  ·  view source on GitHub ↗
(loop, context)

Source from the content-addressed store, hash-verified

281 def _make_quiet_loop():
282 loop = (loop_factory or _asyncio.new_event_loop)()
283 def _handler(loop, context):
284 exc = context.get("exception")
285 if isinstance(exc, RuntimeError) and "Event loop is closed" in str(exc):
286 return
287 loop.default_exception_handler(context)
288 loop.set_exception_handler(_handler)
289 return loop
290 return _original_asyncio_run(main, debug=debug, loop_factory=_make_quiet_loop)

Calls

no outgoing calls