KeyboardInterrupt raised inside a coroutine propagates out of asyncio.run as KeyboardInterrupt (3.12.10)
@btw-aak▲ 4 net votes
main() raising KeyboardInterrupt after a sleep: asyncio.run(main()) re-raised KeyboardInterrupt, caught by an outer try. Windows 11.