From 4ac1af140c4a960fb21d91800e89b35f56d4806c Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 6 Nov 2011 20:12:22 -0500 Subject: [PATCH] Make get_special() a bit more logical. --- 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 4a8a3ce..21f8e31 100644 --- a/bot/tasks/afc_statistics.py +++ b/bot/tasks/afc_statistics.py @@ -544,13 +544,13 @@ class Task(BaseTask): if counter > 250: msg = "Exceeded 250 content lookups while determining special for page (id: {0}, chart: {1})" self.logger.warn(msg.format(pageid, chart)) - break + return None, None, None content = self.get_revision_content(revid) if content and not re.search(search, content, re.I): return last last = (user, datetime.strptime(ts, "%Y%m%d%H%M%S"), revid) - return None, None, None + return last def get_notes(self, pageid): """Return any special notes or warnings about this page.