A1ex2015 / feedparser

Automatically exported from code.google.com/p/feedparser
Other
0 stars 0 forks source link

TypeError exception when parsing some feed #345

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It happens on http://threeminds.organic.com/feed
See below

>>> import feedparser
>>> feedparser.parse('http://threeminds.organic.com/feed')
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/feedparser.py", line 3997, in parse
    saxparser.parse(source)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/expatreader.py", line 107, in par
se
    xmlreader.IncrementalParser.parse(self, source)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse

    self.feed(buffer)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/expatreader.py", line 207, in fee
d
    self._parser.Parse(data, isFinal)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/expatreader.py", line 349, in end
_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/Library/Python/2.7/site-packages/feedparser.py", line 1859, in endElementNS
    self.unknown_endtag(localname)
  File "/Library/Python/2.7/site-packages/feedparser.py", line 708, in unknown_endtag
    method()
  File "/Library/Python/2.7/site-packages/feedparser.py", line 1525, in _end_category
    if value and len(tags) and not tags[-1]['term']:
TypeError: string indices must be integers

Original issue reported on code.google.com by analo...@gmail.com on 18 Apr 2012 at 7:20

GoogleCodeExporter commented 9 years ago
This is happening because the feed contains a `tags` element that conflicts 
with feedparser's `tags` key. I'll fix this as soon as I can.

Original comment by kurtmckee on 25 Apr 2012 at 7:29

GoogleCodeExporter commented 9 years ago
I was additionally emailed with the following two URLs:

Feed: https://friendpaste.com/h1ZJb3PKMftgMNTm0L5ia
Traceback: https://friendpaste.com/4OzVMOWaDnAnFhUten20nu

Original comment by kurtmckee on 1 May 2012 at 4:12