diff --git a/src/wikimore/app.py b/src/wikimore/app.py index 3990023..6551941 100644 --- a/src/wikimore/app.py +++ b/src/wikimore/app.py @@ -263,14 +263,9 @@ def wiki_article( body = soup.find("body") if not body: - return ( - render_template( - "article.html", - title="Error", - content="An error occurred while fetching the article.", - ), - 500, - ) + article_html = f"
{article_html}
" + soup = BeautifulSoup(article_html, "html.parser") + body = soup.find("div", class_="mw-body-content") body.name = "div"