mirror of
https://github.com/lilydjwg/nvchecker
synced 2025-01-05 13:52:57 +00:00
try asyncio.run again
because asyncio.get_event_loop() is deprecated.
This commit is contained in:
parent
91cbed1f8e
commit
8d4982d440
@ -76,9 +76,7 @@ def main() -> None:
|
||||
result_coro = core.process_result(oldvers, result_q, entry_waiter)
|
||||
runner_coro = core.run_tasks(futures)
|
||||
|
||||
# asyncio.run doesn't work because it always creates new eventloops
|
||||
loop = asyncio.get_event_loop()
|
||||
newvers = loop.run_until_complete(run(result_coro, runner_coro))
|
||||
newvers = asyncio.run(run(result_coro, runner_coro))
|
||||
|
||||
if options.ver_files is not None:
|
||||
core.write_verfile(options.ver_files[1], newvers)
|
||||
|
Loading…
Reference in New Issue
Block a user