Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Version 1.7
Browse files Browse the repository at this point in the history
Image update retry bug fixed
  • Loading branch information
enduity committed Apr 3, 2022
1 parent 48eaad0 commit fc7b472
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit fc7b472

Please sign in to comment.