From 8c45207b0f5a4ed441fab889fa42da69928de2f5 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 6 Sep 2020 18:26:22 +0300 Subject: [PATCH] Stop using asyncio.run. Fixes #13 --- import.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/import.py b/import.py index 5f13565..1dcbed5 100644 --- a/import.py +++ b/import.py @@ -252,5 +252,7 @@ async def main(): else: parser.print_help() + await client.disconnect() -asyncio.run(main()) + +asyncio.get_event_loop().run_until_complete(main())