py: use asyncio.run() function
This commit is contained in:
parent
298492a364
commit
cab451d069
|
@ -149,5 +149,5 @@ async def main():
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
|
||||||
loop = asyncio.get_event_loop()
|
if __name__ == '__main__':
|
||||||
loop.run_until_complete(main())
|
asyncio.run(main())
|
||||||
|
|
Loading…
Reference in New Issue