Browse Source

Log a warning if the talk page's subject doesn't exist.

pull/15/head
Ben Kurtovic 11 years ago
parent
commit
af1a408602
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      tasks/afc_undated.py

+ 4
- 0
tasks/afc_undated.py View File

@@ -147,6 +147,10 @@ class AFCUndated(Task):
a file page. a file page.
""" """
subject = page.toggle_talk() 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: if subject.namespace == NS_FILE:
return self.get_filedata(subject) return self.get_filedata(subject)
self.logger.debug(u"[[{0}]]: Getting talkdata".format(page.title)) self.logger.debug(u"[[{0}]]: Getting talkdata".format(page.title))


Loading…
Cancel
Save