# HG changeset patch # User dirk # Date 1330249061 -3600 # Node ID 95445513cc34d85a0662f277fb260e2f671d1adf # Parent 50b578588405233fdc6ec40013a815c67f0cfd67 adjust logging if feed entry does not have a published date diff -r 50b578588405 -r 95445513cc34 backend/couchdb/FeedUpdater.py --- 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