(loop, context)
| 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) |
no outgoing calls