Skip to content

Commit 5410830

Browse files
authored
Update curl_tests.py: zzzzz
1 parent e0e9626 commit 5410830

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/curl_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def test(
164164
content = re.sub(r"[\t\n\s]{3,}", "\n\n", content)
165165

166166
base_tag = html.find("base")
167-
base = base_tag["href"] if base_tag else ""
167+
base = base_tag.get("href", "") if base_tag else ""
168168

169169
errors = []
170170
if expect_effective_url is None and "/yunohost/sso" in effective_url:

0 commit comments

Comments
 (0)