Updated fix for server error when getting version

This commit is contained in:
Ken Roberts 2018-06-28 09:51:35 -07:00
parent bc832c7c72
commit 64524318b3

View File

@ -89,11 +89,8 @@ class VersionWorker(ThreadWorker):
while retries < 3: while retries < 3:
try: try:
response = requests.get(download_url, headers=headers) response = requests.get(download_url, headers=headers)
if response.status_code != 200: if response.status_code == 200:
log.warn('Server returned status code {code}: ' remote_version = response.text.strip()
'Version update check not available.'.format(code=response.status_code))
break
remote_version = response.text.strip()
log.debug('New version found: %s', remote_version) log.debug('New version found: %s', remote_version)
break break
except OSError: except OSError: