Skip to content

Commit

Permalink
🎨 Format Python code with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamandar committed Nov 4, 2024
1 parent aad9cd0 commit e1441db
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/curl_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,7 @@ def test(
retried = 0
while code is None or code in {502, 503, 504}:
time.sleep(retried * 5)
code, content, effective_url = curl(
full_url, post=post, use_cookies=cookies
)
code, content, effective_url = curl(full_url, post=post, use_cookies=cookies)
retried += 1
if retried > 3:
break
Expand All @@ -165,8 +163,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:
Expand Down

0 comments on commit e1441db

Please sign in to comment.