From 5f49502c293752330d3445b1279e20dbfe892bd3 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 18 Mar 2016 19:58:46 +0100 Subject: [PATCH] Fix NoneType bug. --- plomlombot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 + ">: " -- 2.30.2