mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2024-12-28 02:16:16 +00:00
Added raise_for_status
This commit is contained in:
parent
c04eb7a31c
commit
b99fe1f888
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue