Fix update check when content could not be downloaded.

This commit is contained in:
Bastian Kleineidam 2012-04-09 13:36:18 +02:00
parent a76824043c
commit 7a019aac51
2 changed files with 3 additions and 1 deletions

View file

@ -6,6 +6,8 @@ Fixes:
Closes: SF bug #3514219
- checking: Fix cache key for URL connections on redirect.
Closes: SF bug #3514748
- gui: Fix update check when content could not be downloaded.
Closes: SF bug #3515959
Features:
- cgi: Added a WSGI script to replace the CGI script.

View file

@ -60,7 +60,7 @@ def get_online_version ():
headers = {'Pragma': 'no-cache', 'Cache-Control': 'no-cache'}
info, content = get_content(UPDATE_URL, addheaders=headers)
if info is None:
None, _('could not download update information')
return None, _('could not download update information')
version, url = None, None
for line in content.splitlines():
if line.startswith(VERSION_TAG):