diff --git a/lib/curl_tests.py b/lib/curl_tests.py index e0f765d..86a48b4 100644 --- a/lib/curl_tests.py +++ b/lib/curl_tests.py @@ -168,8 +168,8 @@ def test( content = content.get_text().strip() if content else "" content = re.sub(r"[\t\n\s]{3,}", "\n\n", content) - base_tag = html.find('base') - base = base_tag['href'] if base_tag else '' + base_tag = html.find("base") + base = base_tag["href"] if base_tag else "" errors = [] if expect_effective_url is None and "/yunohost/sso" in effective_url: