Mercurial > hg > Feedworm
diff FeedUpdater.py @ 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 | 97c4e94f99cf |
children | 99807963d9e0 |
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