From b99fe1f888b7f0a3fe24a52984b50efbc2f73bb1 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Fri, 11 Sep 2020 01:03:54 +0200 Subject: [PATCH] Added raise_for_status --- server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 31eb42a..d2bb5b0 100644 --- a/server.py +++ b/server.py @@ -111,7 +111,9 @@ def check_for_updates(): with open(commitFile, 'r') as f: currentVersion = f.read().strip() try: - latestVersion = requests.get("https://deemix.app/pyweb/latest").text.strip() + latestVersion = requests.get("https://deemix.app/pyweb/latest") + latestVersion.raise_for_status() + latestVersion = latestVersion.text.strip() except: latestVersion = None if currentVersion and latestVersion: