Skip to content

Commit

Permalink
Fix crash in countries where you cannot access github.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tumppi066 committed Nov 11, 2024
1 parent 53c9841 commit e330067
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
3 changes: 3 additions & 0 deletions blog/V1.11.Minor.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ title: Version 1.11 > Minor
This changelog will contain all changes from 1.11.0 onwards before the next major version.
!!!

==- Version 1.11.77
Fix crash in countries where you cannot access github.
[!badge variant="dark" text="Tumppi066"] [!badge variant="ghost" text="Backend"]
==- Version 1.11.76
Fix crash when profile folder does not exist yet.
[!badge variant="dark" text="Tumppi066"] [!badge variant="ghost" text="Backend"]
Expand Down
2 changes: 1 addition & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Fix crash when profile folder does not exist yet.
Fix crash in countries where you cannot access github.
22 changes: 14 additions & 8 deletions src/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,20 @@ def UpdateChecker():
print("Failed to check for updates")
print("Please check your internet connection and try again later")
return
if int(currentVer[0]) < int(remoteVer[0]):
update = True
elif int(currentVer[1]) < int(remoteVer[1]):
update = True
elif int(currentVer[2]) < int(remoteVer[2]):
update = True
else:
update = False

try:
if int(currentVer[0]) < int(remoteVer[0]):
update = True
elif int(currentVer[1]) < int(remoteVer[1]):
update = True
elif int(currentVer[2]) < int(remoteVer[2]):
update = True
else:
update = False
except:
print("Failed to check for updates")
print("Your PC cannot access github")
return

if remote == "github":
url = githubUrl
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.76
1.11.77

0 comments on commit e330067

Please sign in to comment.