Skip to content

Commit

Permalink
Update src/main/python/main/ayab/version_checker.py
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
jonathanperret and coderabbitai[bot] authored Sep 26, 2024
1 parent 7cfd7bd commit 06bea53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/python/main/ayab/version_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def version_check_finished(self) -> None:

data = self._version_check_reply.readAll()
obj = json.loads(data.data())
if obj["draft"] is False and obj["prerelease"] is False:
latest_version = obj["tag_name"]
if not obj.get("draft", True) and not obj.get("prerelease", True):
latest_version = obj.get("tag_name")
if latest_version is not None and self.is_newer(latest_version):
url = (
f"https://github.com/{self.REPO}/releases/tag/{latest_version}"
Expand Down

0 comments on commit 06bea53

Please sign in to comment.