From 1744950483c46153795270da09101316f9aa80ee Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Mon, 7 Nov 2011 18:20:33 -0500 Subject: [PATCH] Namespaces. --- bot/tasks/afc_statistics.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bot/tasks/afc_statistics.py b/bot/tasks/afc_statistics.py index bad3d50..7921dd4 100644 --- a/bot/tasks/afc_statistics.py +++ b/bot/tasks/afc_statistics.py @@ -429,6 +429,7 @@ class Task(BaseTask): namespace, base = title.decode("utf8").split(":", 1) except ValueError: base = title.decode("utf8") + ns = wiki.NS_MAIN else: try: ns = self.site.namespace_name_to_id(namespace)