Update functions to retrieve information from GitHub API

This commit is contained in:
Hoang Hong Quan
2024-10-27 01:31:01 +07:00
parent 19e18e525c
commit c82978ec26
3 changed files with 36 additions and 10 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ class Updater:
return current_sha_version.decode()
def get_latest_sha_version(self):
latest_commit = self.github.get_latest_commit("lzhoang2801", "OpCore-Simplify")
latest_commit = self.github.get_latest_commit("lzhoang2801", "OpCore-Simplify") or {}
return latest_commit.get("sha") or "0506fb67111d5c5230bf59b826c318ea4251dfc4"