Skip to content

Commit

Permalink
fix #17800 recression of #17310
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherpross committed Mar 10, 2025
1 parent 495dee3 commit c89f9a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/updateCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ def checkForUpdate(auto: bool = False) -> UpdateInfo | None:

data = res.read().decode("utf-8") # Ensure the response is decoded correctly
try:
# if data is empty, we return None, because the server returns an empty response if there is no update.
if not data:
return None
parsed_response = UpdateInfo.parseUpdateCheckResponse(data)
except ValueError:
raise RuntimeError(
Expand Down

0 comments on commit c89f9a5

Please sign in to comment.