Mercurial > hg > Feedworm
changeset 202:95445513cc34
adjust logging if feed entry does not have a published date
author | dirk |
---|---|
date | Sun, 26 Feb 2012 10:37:41 +0100 |
parents | 50b578588405 |
children | 173fd7b9198f |
files | backend/couchdb/FeedUpdater.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/backend/couchdb/FeedUpdater.py Wed Feb 01 01:26:09 2012 +0100 +++ b/backend/couchdb/FeedUpdater.py Sun Feb 26 10:37:41 2012 +0100 @@ -16,7 +16,10 @@ self._createFeedEntry(entry) def _createFeedEntry(self, entry): - log.info("new feed entry: %s (%s)" % (entry.title, entry.published)) + if hasattr(entry, "published"): + log.info("new feed entry: %s (%s)" % (entry.title, entry.published)) + else: + log.info("new feed entry: %s" % (entry.title)) feedEntry = FeedEntry() feedEntry.feed = self.feed.id feedEntry.link = entry.link