Added raise_for_status

This commit is contained in:
RemixDev 2020-09-11 01:03:54 +02:00
parent c04eb7a31c
commit b99fe1f888

View file

@ -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: