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:
|
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}: '
|
|
||||||
'Version update check not available.'.format(code=response.status_code))
|
|
||||||
break
|
|
||||||
remote_version = response.text.strip()
|
remote_version = response.text.strip()
|
||||||
log.debug('New version found: %s', remote_version)
|
log.debug('New version found: %s', remote_version)
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user