From: Christian Heller Date: Mon, 18 Jan 2016 22:05:12 +0000 (+0100) Subject: Cancel page title reading on bad charset. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/process_titles?a=commitdiff_plain;h=73d956fc4322397624652d1a63341f3092988679;p=plomlombot-irc.git Cancel page title reading on bad charset. --- diff --git a/plomlombot.py b/plomlombot.py index 0b605e9..8ac8f01 100755 --- a/plomlombot.py +++ b/plomlombot.py @@ -122,7 +122,8 @@ def lineparser_loop(io, nickname): continue charset = webpage.info().get_content_charset() if not charset: - charset = "utf-8" + notice("TROUBLE READING PAGE TITLE: no charset in header") + continue content_type = webpage.info().get_content_type() if content_type not in ('text/html', 'text/xml', 'application/xhtml+xml'):