mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-04 04:44:42 +00:00
Fix update check when content could not be downloaded.
This commit is contained in:
parent
a76824043c
commit
7a019aac51
2 changed files with 3 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue