From d4b5f6a7772ec0c6c9dfd2ad4f4585bc799372c7 Mon Sep 17 00:00:00 2001 From: wqj666888 <45819506+wqj666666@users.noreply.github.com> Date: Sat, 10 Dec 2022 02:53:54 +0800 Subject: [PATCH] Update bot.py --- bot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot.py b/bot.py index f83cff5..8029ca3 100644 --- a/bot.py +++ b/bot.py @@ -38,6 +38,9 @@ def ss(update: Update, context: CallbackContext) -> None: update.message.reply_text(ss) else: update.message.reply_text("数据库没有该书集") + # 关闭数据库连接 + db.close() + connect.close() else: update.message.reply_text("输入的读秀SS格式错误")