py: use asyncio.run() function

This commit is contained in:
Dirkjan Ochtman 2023-02-02 11:42:50 +01:00
parent 7caae1db16
commit f11818e4c7
1 changed files with 2 additions and 2 deletions

View File

@ -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())