From d4430cec0def817de059b73c7f486810dfb8cc46 Mon Sep 17 00:00:00 2001 From: Sergey Silaev Date: Tue, 10 May 2022 01:20:11 +0400 Subject: [PATCH] Hotfix for cli group function in v0.6.3 --- aerich/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aerich/cli.py b/aerich/cli.py index bb48774..743aa56 100644 --- a/aerich/cli.py +++ b/aerich/cli.py @@ -30,7 +30,7 @@ def coro(f): try: loop.run_until_complete(f(*args, **kwargs)) finally: - if Tortoise._inited: + if f.__name__ not in ["cli", "init_db"]: loop.run_until_complete(Tortoise.close_connections()) return wrapper