forked from openlp/openlp
Updated fix for server error when getting version
This commit is contained in:
parent
bc832c7c72
commit
64524318b3
@ -89,10 +89,7 @@ class VersionWorker(ThreadWorker):
|
||||
while retries < 3:
|
||||
try:
|
||||
response = requests.get(download_url, headers=headers)
|
||||
if response.status_code != 200:
|
||||
log.warn('Server returned status code {code}: '
|
||||
'Version update check not available.'.format(code=response.status_code))
|
||||
break
|
||||
if response.status_code == 200:
|
||||
remote_version = response.text.strip()
|
||||
log.debug('New version found: %s', remote_version)
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user