Wed, 05 Oct 2011 19:24:25 +0200
Fixed an issue in the versions file downloader.
(transplanted from 97dc4ee2d6559053844281dffefe2ba2e09050da)
UI/UserInterface.py | file | annotate | diff | comparison | revisions |
--- a/UI/UserInterface.py Mon Oct 03 18:52:38 2011 +0200 +++ b/UI/UserInterface.py Wed Oct 05 19:24:25 2011 +0200 @@ -5534,7 +5534,9 @@ if reply.error() == QNetworkReply.NoError: ioEncoding = Preferences.getSystem("IOEncoding") versions = str(reply.readAll(), ioEncoding, 'replace').splitlines() - if reply.error() != QNetworkReply.NoError or versions[0].startswith("<"): + if reply.error() != QNetworkReply.NoError or \ + len(versions) == 0 or \ + versions[0].startswith("<"): # network error or an error page self.httpAlternative += 1 if self.httpAlternative >= len(self.__httpAlternatives):