aboutsummaryrefslogtreecommitdiffstats
path: root/import.py
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-09-06 18:26:22 +0300
committerTulir Asokan <tulir@maunium.net>2020-09-06 18:26:22 +0300
commit8c45207b0f5a4ed441fab889fa42da69928de2f5 (patch)
tree758d6ecb542041979ce05d69b835d73c82661efc /import.py
parentaad04ba9b6e62aa0f900e6fece894dfaa78c0d75 (diff)
Stop using asyncio.run. Fixes #13
Diffstat (limited to 'import.py')
-rw-r--r--import.py4
1 files changed, 3 insertions, 1 deletions
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())
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage