From 5088315db46feb0d0d1a0c36699e5ada7ba04d89 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Fri, 11 Nov 2011 14:00:21 -0500 Subject: [PATCH] Differentiate between completely blank pages and nonexistant or unretrievable pages. --- bot/tasks/afc_statistics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/tasks/afc_statistics.py b/bot/tasks/afc_statistics.py index bdb4fb4..86c25f6 100644 --- a/bot/tasks/afc_statistics.py +++ b/bot/tasks/afc_statistics.py @@ -295,7 +295,7 @@ class Task(BaseTask): which are then saved to our database. """ content = self.get_content(title) - if not content: + if content is None: msg = "Could not get page content for [[{0}]]".format(title) self.logger.error(msg) return @@ -329,7 +329,7 @@ class Task(BaseTask): is then updated. """ content = self.get_content(title) - if not content: + if content is None: msg = "Could not get page content for [[{0}]]".format(title) self.logger.error(msg) return