# HG changeset patch # User Dirk Olmes # Date 1284042989 -7200 # Node ID 479e8c06de49c97bc78c64e0f4a9b56201e46186 # Parent bacf42da9e36bfc86e3d60bf2ded690b6c8b5917 look at the bozo value of the result to determine if something went wrong with the HTTP call diff -r bacf42da9e36 -r 479e8c06de49 FeedUpdater.py --- a/FeedUpdater.py Sun Aug 22 16:45:25 2010 +0200 +++ b/FeedUpdater.py Thu Sep 09 16:36:29 2010 +0200 @@ -55,6 +55,8 @@ def getFeed(self): result = feedparser.parse(self.feed.rss_url) + if result["bozo"] > 0: + raise FeedUpdateException() if result["status"] >= STATUS_ERROR: raise FeedUpdateException() return result