From: Christian Heller Date: Fri, 18 Mar 2016 18:58:46 +0000 (+0100) Subject: Fix NoneType bug. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/static/templates?a=commitdiff_plain;h=5f49502c293752330d3445b1279e20dbfe892bd3;p=plomlombot-irc.git Fix NoneType bug. --- diff --git a/plomlombot.py b/plomlombot.py index 6f6d339..75cfe25 100755 --- a/plomlombot.py +++ b/plomlombot.py @@ -323,7 +323,7 @@ def handle_url(url, notice, show_url=False): if mobile_twitter_hack(url): return title = bs4.BeautifulSoup(r.text, "html5lib").title - if title: + if title and title.string: prefix = "PAGE TITLE: " if show_url: prefix = "PAGE TITLE FOR <" + url + ">: "