Skip to content

Commit

Permalink
fix event loop error
Browse files Browse the repository at this point in the history
  • Loading branch information
long2ice committed Sep 28, 2020
1 parent 6b1ad46 commit 823368a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aerich/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
def coro(f):
@wraps(f)
def wrapper(*args, **kwargs):
return asyncio.run(f(*args, **kwargs))
loop = asyncio.get_event_loop()
return loop.run_until_complete(f(*args, **kwargs))

return wrapper

Expand Down

0 comments on commit 823368a

Please sign in to comment.