From 2f2cf7741f43279c54a62a296dbdd3e7fcecb238 Mon Sep 17 00:00:00 2001 From: Liqutch Date: Wed, 20 Nov 2024 18:02:27 +0100 Subject: [PATCH] fixed asyncio warning for python 3.10+ --- generator.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/generator.py b/generator.py index 68dfa81..f086a9a 100644 --- a/generator.py +++ b/generator.py @@ -199,9 +199,7 @@ async def wait_for_device_code_completion(self, code: str) -> EpicAccount: return EpicAccount(data=auth_data) def run(self) -> None: - loop = asyncio.get_event_loop() - loop.run_until_complete(self.start()) - loop.run_forever() + asyncio.run(self.start()) gen = Generator()