1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 22:40:12 +01:00

Merge branch 'fix_var' into 'master'

Fix variable in exception

See merge request fdroid/fdroidserver!1170
This commit is contained in:
Jochen Sprickerhof 2022-08-17 10:46:41 +00:00
commit abd9faf275

View File

@ -55,7 +55,7 @@ def check_http(app):
if urlver != '.':
parsed = urllib.parse.urlparse(urlver)
if not parsed.netloc or not parsed.scheme or parsed.scheme != 'https':
raise FDroidException(_('UpdateCheckData has invalid URL: {url}').format(url=urlcode))
raise FDroidException(_('UpdateCheckData has invalid URL: {url}').format(url=urlver))
logging.debug("...requesting {0}".format(urlcode))
req = urllib.request.Request(urlcode, None, headers=net.HEADERS)