home
·
contact
·
privacy
projects
/
plomlombot-irc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
93ee629
)
Fix NoneType bug.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 18 Mar 2016 18:58:46 +0000
(19:58 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 18 Mar 2016 18:58:46 +0000
(19:58 +0100)
plomlombot.py
patch
|
blob
|
history
diff --git
a/plomlombot.py
b/plomlombot.py
index 6f6d33994255504e2ac4903cbe254d623db5fbdc..75cfe25344a7bbaf32fa977c944e11ca85362196 100755
(executable)
--- 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 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 + ">: "
prefix = "PAGE TITLE: "
if show_url:
prefix = "PAGE TITLE FOR <" + url + ">: "