diff --git a/lib/curl_tests.py b/lib/curl_tests.py index 8f7c4e5..f7c70d4 100644 --- a/lib/curl_tests.py +++ b/lib/curl_tests.py @@ -163,7 +163,8 @@ def test( except Exception: title = "" - content = html.find("body").get_text().strip() + content = html.find("body") + content = content.get_text().strip() if content else "" content = re.sub(r"[\t\n\s]{3,}", "\n\n", content) errors = []