Update mainview.py

This commit is contained in:
SiYuan 2023-12-19 17:02:42 +08:00 committed by GitHub
parent a4ec235450
commit f7205674ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,6 +172,7 @@ class MainWinController(QMainWindow, mainwindow.Ui_MainWindow):
try: try:
img_bytes = misc_db.get_avatar_buffer(wxid) img_bytes = misc_db.get_avatar_buffer(wxid)
except : except :
close_db()
QMessageBox.critical(self, "数据库错误", "请重启微信后重试") QMessageBox.critical(self, "数据库错误", "请重启微信后重试")
import shutil import shutil
shutil.rmtree('./app/Database/Msg') shutil.rmtree('./app/Database/Msg')