From fc7b472a81caf349615584439d1a658d58537193 Mon Sep 17 00:00:00 2001 From: Endrik Einberg Date: Mon, 4 Apr 2022 00:02:07 +0300 Subject: [PATCH] Version 1.7 Image update retry bug fixed --- run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.py b/run.py index 883b243..527a842 100644 --- a/run.py +++ b/run.py @@ -24,7 +24,7 @@ allowed_restarts = 10 restart_count = 0 update_msg = "" -bot_version = "1.6" +bot_version = "1.7" def load_config(): conf_file = open("./config.json", "r") @@ -122,11 +122,11 @@ def image_updater(image_e, conf): global update_msg global bot_version url = conf["version_url"] - status = "continue" image_version = "0.0.1" tries = 0 while True: + status = "continue" if tries >= 10: print('Failed to update image after 10 tries. Exiting.') os._exit(1)