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)