changeset 85:479e8c06de49

look at the bozo value of the result to determine if something went wrong with the HTTP call
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 09 Sep 2010 16:36:29 +0200
parents bacf42da9e36
children 94118d504d2b
files FeedUpdater.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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