Skip to content

Commit

Permalink
fixed asyncio warning for python 3.10+
Browse files Browse the repository at this point in the history
  • Loading branch information
Liqutch committed Nov 20, 2024
1 parent f19d097 commit 2f2cf77
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2f2cf77

Please sign in to comment.