5484 if reply in self.__replies: |
5484 if reply in self.__replies: |
5485 self.__replies.remove(reply) |
5485 self.__replies.remove(reply) |
5486 if reply.error() == QNetworkReply.NoError: |
5486 if reply.error() == QNetworkReply.NoError: |
5487 ioEncoding = Preferences.getSystem("IOEncoding") |
5487 ioEncoding = Preferences.getSystem("IOEncoding") |
5488 versions = str(reply.readAll(), ioEncoding, 'replace').splitlines() |
5488 versions = str(reply.readAll(), ioEncoding, 'replace').splitlines() |
5489 if reply.error() != QNetworkReply.NoError or versions[0].startswith("<"): |
5489 if reply.error() != QNetworkReply.NoError or \ |
|
5490 len(versions) == 0 or \ |
|
5491 versions[0].startswith("<"): |
5490 # network error or an error page |
5492 # network error or an error page |
5491 self.httpAlternative += 1 |
5493 self.httpAlternative += 1 |
5492 if self.httpAlternative >= len(self.__httpAlternatives): |
5494 if self.httpAlternative >= len(self.__httpAlternatives): |
5493 self.__inVersionCheck = False |
5495 self.__inVersionCheck = False |
5494 if self.__versionCheckProgress is not None: |
5496 if self.__versionCheckProgress is not None: |