Skip to content

Commit 09a9cce

Browse files
committed
fix: DeprecationWarning: There is no current event loop
1 parent c6cf689 commit 09a9cce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

example.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,4 @@ async def main():
6363

6464
if __name__ == "__main__":
6565
logging.basicConfig(level=logging.DEBUG)
66-
loop = asyncio.get_event_loop()
67-
loop.run_until_complete(main())
66+
asyncio.run(main())

0 commit comments

Comments
 (0)