From d951b2a8ec99405a492d2f9879014fcb0946860a Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 6 Oct 2013 00:50:12 -0400 Subject: [PATCH] Use logger; bugfix. --- tasks/afc_dailycats.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/afc_dailycats.py b/tasks/afc_dailycats.py index 2ad42c3..06a9e70 100644 --- a/tasks/afc_dailycats.py +++ b/tasks/afc_dailycats.py @@ -55,5 +55,8 @@ class AFCDailyCats(Task): def make_cat(self, suffix, word): 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)) + self.logger.log("Creating [[{0}]]".format(page.title)) + else: + self.logger.debug("Skipping [[{0}]], exists".format(page.title))