Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
Hiroshi Miura
2019-11-29 12:41:21 +09:00
parent 93209613f6
commit ea79fe6b74
2 changed files with 2 additions and 2 deletions

View File

@@ -97,7 +97,7 @@ class QtArchives:
r = requests.get(update_xml_url, allow_redirects=False)
if r.status_code == 302:
new_url = altlink(update_xml_url)
self.base = new_url[:-len(archive_path)-11]
self.base = new_url[:-(len(archive_path) + 11)]
except requests.exceptions.ConnectionError as e:
self.logger.error('Download error: %s\n' % e.args, exc_info=True)
raise e

View File

@@ -15,7 +15,7 @@ ignore =
[isort]
known_first_party = aqt
known_third_party = docutils,flake8,pyannotate_runtime,pytest,pytz,setuptools,sphinx,yaml,packaging
known_third_party = docutils,flake8,pyannotate_runtime,pytest,pytz,requests,setuptools,sphinx,yaml,packaging
[testenv:check]
deps =