Don't blow up on feeds which contain images inside rss items. Example:
http://www.thestranger.com/seattle/Rss.xml?category=oid%3A258
This commit is contained in:
parent
dbadd674c6
commit
ad8b31861a
2
planet/vendor/feedparser.py
vendored
2
planet/vendor/feedparser.py
vendored
@ -1131,7 +1131,7 @@ class _FeedParserMixin:
|
||||
def _getContext(self):
|
||||
if self.insource:
|
||||
context = self.sourcedata
|
||||
elif self.inimage:
|
||||
elif self.inimage and self.feeddata.has_key('image'):
|
||||
context = self.feeddata['image']
|
||||
elif self.intextinput:
|
||||
context = self.feeddata['textinput']
|
||||
|
Loading…
Reference in New Issue
Block a user