fix: 更新包中包含新文件时更新失败

This commit is contained in:
Rock Chin
2023-03-12 22:43:02 +08:00
parent a716f071be
commit 2ea711e629
2 changed files with 11 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import json
import datetime
import os
import threading
import traceback
import pkg.openai.session
import pkg.openai.manager
@@ -362,6 +363,7 @@ def process_command(session_name: str, text_message: str, mgr, config,
else:
pkg.utils.context.get_qqbot_manager().notify_admin("无新版本")
except Exception as e0:
traceback.print_exc()
pkg.utils.context.get_qqbot_manager().notify_admin("更新失败:{}".format(e0))
return