mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-18 05:04:38 +03:00
Catch timeout connection then fallback
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
@@ -184,7 +184,7 @@ class QtArchives:
|
||||
def _download_update_xml(self, update_xml_url):
|
||||
try:
|
||||
r = requests.get(update_xml_url, timeout=self.timeout)
|
||||
except (ConnectionResetError, requests.exceptions.ConnectionError):
|
||||
except (ConnectionResetError, requests.exceptions.ConnectionError, requests.exceptions.ReadTimeout):
|
||||
raise ArchiveConnectionError()
|
||||
else:
|
||||
if r.status_code == 200:
|
||||
|
||||
Reference in New Issue
Block a user