# HG changeset patch # User Dirk Olmes # Date 1352704240 -3600 # Node ID 1ac0b8e2feae3bd8336dded8247ae201b13d9ca1 # Parent e2c70c92da02e1178a8a2709031d28181c30dfeb wrap the individual feed update with an exception handler so that a sinlge broken feed doesn't halt the entire update process diff -r e2c70c92da02 -r 1ac0b8e2feae backend/couchdb/CouchDbBackend.py --- a/backend/couchdb/CouchDbBackend.py Wed Jul 25 08:00:43 2012 +0200 +++ b/backend/couchdb/CouchDbBackend.py Mon Nov 12 08:10:40 2012 +0100 @@ -108,7 +108,10 @@ allFeeds = Feed.all(self.database) for feed in allFeeds: if feed.needsUpdate(): - FeedUpdater(self.database, self.preferences()).update(feed) + try: + FeedUpdater(self.database, self.preferences()).update(feed) + except Exception as ex: + logging.getLogger("FeedUpdate").error("Exception during fetch: " + str(ex)) def expireFeedEntries(self): expireDate = self._calculateExpireDate()