From af1a408602a36aa5c13462232522c75bb41b8a23 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Mon, 28 Oct 2013 19:53:00 -0400 Subject: [PATCH] Log a warning if the talk page's subject doesn't exist. --- tasks/afc_undated.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/afc_undated.py b/tasks/afc_undated.py index 7ce80b2..2fd65ed 100644 --- a/tasks/afc_undated.py +++ b/tasks/afc_undated.py @@ -147,6 +147,10 @@ class AFCUndated(Task): a file page. """ subject = page.toggle_talk() + if subject.exists == subject.PAGE_MISSING: + log = u"Couldn't process [[{0}]]: subject page doesn't exist" + self.logger.warn(log.format(page.title)) + return None, None if subject.namespace == NS_FILE: return self.get_filedata(subject) self.logger.debug(u"[[{0}]]: Getting talkdata".format(page.title))