From f77d668cc12e981fff96eea5d11ad3cd9001d76a Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Sat, 11 Feb 2023 01:57:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=83=AD=E9=87=8D=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 55c6f19c..36e179da 100644 --- a/main.py +++ b/main.py @@ -68,15 +68,20 @@ def hot_update(ver): version_file.flush() version_file.close() - update_version(version) + try: + update_version(version) + except BaseException as e: + print(e) print('自启动') py = sys.executable os.execl(py, py, *sys.argv) time.sleep(60*20) except BaseException as e: + print(e) + print("upd出现异常,请联系QQ905617992") time.sleep(60*20) - raise e + def update_version(ver): if not os.path.exists('update_record'):