From f7205674ec61224b8a5a7daefdd22008e21ed992 Mon Sep 17 00:00:00 2001 From: SiYuan <863909694@qq.com> Date: Tue, 19 Dec 2023 17:02:42 +0800 Subject: [PATCH] Update mainview.py --- app/ui/mainview.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/ui/mainview.py b/app/ui/mainview.py index dc33585..0944e67 100644 --- a/app/ui/mainview.py +++ b/app/ui/mainview.py @@ -172,6 +172,7 @@ class MainWinController(QMainWindow, mainwindow.Ui_MainWindow): try: img_bytes = misc_db.get_avatar_buffer(wxid) except : + close_db() QMessageBox.critical(self, "数据库错误", "请重启微信后重试") import shutil shutil.rmtree('./app/Database/Msg')