HaveF / feedparser

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

Podlove Simple Chapters version 1.0 causes a KeyError #396

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:

>>> import feedparser
>>> feedparser.parse('http://fanbóys.org/episodes.mp3.rss')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/feedparser-5.1.3-py2.7.egg/feedparser.py", line 3748, in parse
    saxparser.parse(source)
  File "/usr/lib/python2.7/dist-packages/drv_libxml2.py", line 231, in parse
    _d(reader.Name()))
  File "/usr/local/lib/python2.7/dist-packages/feedparser-5.1.3-py2.7.egg/feedparser.py", line 2002, in endElementNS
    self.unknown_endtag(localname)
  File "/usr/local/lib/python2.7/dist-packages/feedparser-5.1.3-py2.7.egg/feedparser.py", line 687, in unknown_endtag
    method()
  File "/usr/local/lib/python2.7/dist-packages/feedparser-5.1.3-py2.7.egg/feedparser.py", line 1904, in _end_psc_chapters
    version = self._getContext()['psc_chapters']['version']
  File "/usr/local/lib/python2.7/dist-packages/feedparser-5.1.3-py2.7.egg/feedparser.py", line 353, in __getitem__
    return dict.__getitem__(self, key)
KeyError: 'psc_chapters'

I'm using the current master branch from git 
(2e61129cde9319629fe2bcc3c79b728569333c81)

A snapshot of the feed is available at 

https://gist.github.com/stefankoegl/5276008/raw/7aee2cf60b8a94e9be27331c39c12156
a8d08d70/episodes.mp3.rss

https://gist.github.com/stefankoegl/5276008

Original issue reported on code.google.com by koeglste...@gmail.com on 30 Mar 2013 at 9:08

GoogleCodeExporter commented 9 years ago

Original comment by kurtmckee on 11 May 2013 at 2:02

GoogleCodeExporter commented 9 years ago

Original comment by kurtmckee on 11 May 2013 at 2:02

GoogleCodeExporter commented 9 years ago

Original comment by kurtmckee on 11 May 2013 at 4:07

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 190937ecbd3e.

Original comment by kurtmckee on 11 May 2013 at 4:08