Mercurial > hg > Feedworm
comparison backend/couchdb/CouchDbBackend.py @ 214:b0de75d57e78
Merge with 1ac0b8e2feae3bd8336dded8247ae201b13d9ca1
author | dirk |
---|---|
date | Sat, 04 May 2013 06:23:20 +0200 |
parents | 524cbf9e413c 1ac0b8e2feae |
children | bb3c851b18b1 |
comparison
equal
deleted
inserted
replaced
213:524cbf9e413c | 214:b0de75d57e78 |
---|---|
106 def updateAllFeeds(self): | 106 def updateAllFeeds(self): |
107 # TODO: use a view instead of iterating all feeds | 107 # TODO: use a view instead of iterating all feeds |
108 allFeeds = Feed.all(self.database) | 108 allFeeds = Feed.all(self.database) |
109 for feed in allFeeds: | 109 for feed in allFeeds: |
110 if feed.needsUpdate(): | 110 if feed.needsUpdate(): |
111 FeedUpdater(self.database, self.preferences()).update(feed) | 111 try: |
112 FeedUpdater(self.database, self.preferences()).update(feed) | |
113 except Exception as ex: | |
114 logging.getLogger("FeedUpdate").error("Exception during fetch: " + str(ex)) | |
112 | 115 |
113 def expireFeedEntries(self): | 116 def expireFeedEntries(self): |
114 expireDate = self._calculateExpireDate() | 117 expireDate = self._calculateExpireDate() |
115 logger = logging.getLogger("expiry") | 118 logger = logging.getLogger("expiry") |
116 logger.info("expiring entries older than " + str(expireDate)) | 119 logger.info("expiring entries older than " + str(expireDate)) |