Browse Source

Differentiate between completely blank pages and nonexistant or unretrievable pages.

tags/v0.1^2
Ben Kurtovic 13 years ago
parent
commit
5088315db4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      bot/tasks/afc_statistics.py

+ 2
- 2
bot/tasks/afc_statistics.py View File

@@ -295,7 +295,7 @@ class Task(BaseTask):
which are then saved to our database. which are then saved to our database.
""" """
content = self.get_content(title) content = self.get_content(title)
if not content:
if content is None:
msg = "Could not get page content for [[{0}]]".format(title) msg = "Could not get page content for [[{0}]]".format(title)
self.logger.error(msg) self.logger.error(msg)
return return
@@ -329,7 +329,7 @@ class Task(BaseTask):
is then updated. is then updated.
""" """
content = self.get_content(title) content = self.get_content(title)
if not content:
if content is None:
msg = "Could not get page content for [[{0}]]".format(title) msg = "Could not get page content for [[{0}]]".format(title)
self.logger.error(msg) self.logger.error(msg)
return return


Loading…
Cancel
Save