Commit f798d79d authored by ale's avatar ale

"fail safe" on feedparser errors (i.e. textpattern returns status 200 when the...

"fail safe" on feedparser errors (i.e. textpattern returns status 200 when the feed has not changed)
parent 35caa0b0
......@@ -37,7 +37,7 @@ class Feed(object):
if response.bozo:
logging.error('error downloading %s: %s' % (
url, str(response.bozo_exception)))
return FeedData(feed=None, entries=[])
return f.data
logging.debug('downloaded %s, status=%d' % (url, response.status))
if response.status == 304:
return f.data
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment