From 2be62140ac97ef59b61a3fd7f7ba01a59f03db8c Mon Sep 17 00:00:00 2001 From: scdhh Date: Sun, 7 Aug 2022 00:39:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=B3=E9=97=AD=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E6=97=B6=E9=94=99=E8=AF=AF=E4=BD=BF=E7=94=A8?= =?UTF-8?q?await=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_tetris_stats/utils/sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nonebot_plugin_tetris_stats/utils/sql.py b/nonebot_plugin_tetris_stats/utils/sql.py index 88eaddd..bd9f41c 100644 --- a/nonebot_plugin_tetris_stats/utils/sql.py +++ b/nonebot_plugin_tetris_stats/utils/sql.py @@ -20,7 +20,7 @@ async def _(): @driver.on_shutdown async def _(): if isinstance(_DB, Connection): - await _DB.close() + _DB.close() async def init_db() -> Connection: