From c89f9a5e71c2e8d4cc729977a77e0a7c6d044cb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20Pro=C3=9F?= Date: Sat, 8 Mar 2025 19:29:54 +0100 Subject: [PATCH] fix #17800 recression of #17310 --- source/updateCheck.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/updateCheck.py b/source/updateCheck.py index 103797f7881..aab88d1f391 100644 --- a/source/updateCheck.py +++ b/source/updateCheck.py @@ -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(