Skip to content

Commit 2f2cf77

Browse files
committed
fixed asyncio warning for python 3.10+
1 parent f19d097 commit 2f2cf77

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

generator.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,7 @@ async def wait_for_device_code_completion(self, code: str) -> EpicAccount:
199199
return EpicAccount(data=auth_data)
200200

201201
def run(self) -> None:
202-
loop = asyncio.get_event_loop()
203-
loop.run_until_complete(self.start())
204-
loop.run_forever()
202+
asyncio.run(self.start())
205203

206204

207205
gen = Generator()

0 commit comments

Comments
 (0)