Skip to content

v1.2.4

Choose a tag to compare

@github-actions github-actions released this 23 Feb 12:37
· 18 commits to main since this release
v1.2.4
2ef6899

Fixed

  • Async command cleanup: Fixed a bug where interrupting an async command with Ctrl+C (or any BaseException) caused RuntimeError: Event loop is closed inside finally blocks, and produced Task was destroyed but it is pending! warnings for background tasks. run_coroutine() now wraps the coroutine in a Task, and on any interrupting exception cancels that task and drains the loop before re-raising, ensuring finally blocks can await as expected. _close_async_loop() now cancels all remaining pending tasks and awaits their completion via asyncio.gather before closing the loop, mirroring the shutdown behaviour of asyncio.run().