From: Christian Heller Date: Thu, 4 Feb 2016 00:12:03 +0000 (+0100) Subject: Get rid of annoying BeautifulSoup parser warning. X-Git-Url: https://plomlompom.com/repos/ledger?a=commitdiff_plain;h=285e35deba1bf186eef607c65313aa3b2e3e9f9b;p=plomlombot-irc.git Get rid of annoying BeautifulSoup parser warning. --- diff --git a/plomlombot.py b/plomlombot.py index 11a8206..57ac4d4 100755 --- a/plomlombot.py +++ b/plomlombot.py @@ -248,7 +248,7 @@ def handle_url(url, notice, show_url=False): return if mobile_twitter_hack(url): return - title = bs4.BeautifulSoup(r.text).title + title = bs4.BeautifulSoup(r.text, "html.parser").title if title: prefix = "PAGE TITLE: " if show_url: