Browse Source

Use logger; bugfix.

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

+ 4
- 1
tasks/afc_dailycats.py View File

@@ -55,5 +55,8 @@ class AFCDailyCats(Task):


def make_cat(self, suffix, word): def make_cat(self, suffix, word):
page = self.site.get_page(self.prefix + suffix) page = self.site.get_page(self.prefix + suffix)
if page.exists() == page.PAGE_MISSING:
if page.exists == page.PAGE_MISSING:
page.edit(self.content, self.summary.format(word)) page.edit(self.content, self.summary.format(word))
self.logger.log("Creating [[{0}]]".format(page.title))
else:
self.logger.debug("Skipping [[{0}]], exists".format(page.title))

Loading…
Cancel
Save