From 29d9e4702fc7ef52c63c8558346aafce2450874c Mon Sep 17 00:00:00 2001 From: pictuga Date: Tue, 24 Mar 2015 23:22:56 +0800 Subject: [PATCH] Force enc det to return utf-8 rather than nothing --- morss/crawler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/crawler.py b/morss/crawler.py index fd471ab..621ac6f 100644 --- a/morss/crawler.py +++ b/morss/crawler.py @@ -142,7 +142,7 @@ def detect_encoding(data, con=None): if match: return match.groups()[0].lower().decode() - return None + return 'utf-8' class EncodingFixHandler(BaseHandler):