update: replace deprecated function
This commit is contained in:
@@ -177,7 +177,8 @@ def handler(loop, context):
|
||||
loop.stop()
|
||||
|
||||
# run
|
||||
loop = asyncio.get_event_loop()
|
||||
loop = asyncio.new_event_loop()
|
||||
asyncio.set_event_loop(loop=loop)
|
||||
loop.set_exception_handler(handler)
|
||||
|
||||
loop.create_task(main(loop))
|
||||
|
||||
Reference in New Issue
Block a user