The following RSS feed causes a terminal crash.
---
<feed>
<title>Tree Hugger Radio</title>
<url>http://feeds.treehugger.com/TreehuggerRadio</url>
</feed>
---
Error is as follows:
---
simon@juicebox:~$ ./fetch_podcasts.sh -v -d
...Spawning thread 0 for feed url http://feeds.treehugger.com/TreehuggerRadio
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/simon/peapod-0.7.1-tabs_spaces/Peapod/peapod.py", line 346, in run
File "/home/simon/peapod-0.7.1-tabs_spaces/Peapod/peapod.py", line 457, in fetchFeed
File "/home/simon/peapod-0.7.1-tabs_spaces/Peapod/feedparser.py", line 2346, in parse
File "/home/simon/peapod-0.7.1-tabs_spaces/Peapod/feedparser.py", line 1258, in feed
File "/usr/lib/python2.5/sgmllib.py", line 99, in feed
self.goahead(0)
File "/usr/lib/python2.5/sgmllib.py", line 138, in goahead
k = self.parse_endtag(i)
File "/usr/lib/python2.5/sgmllib.py", line 315, in parse_endtag
self.finish_endtag(tag)
File "/usr/lib/python2.5/sgmllib.py", line 355, in finish_endtag
self.unknown_endtag(tag)
File "/home/simon/peapod-0.7.1-tabs_spaces/Peapod/feedparser.py", line 398, in unknown_endtag
File "/home/simon/peapod-0.7.1-tabs_spaces/Peapod/feedparser.py", line 1047, in _end_description
File "/home/simon/peapod-0.7.1-tabs_spaces/Peapod/feedparser.py", line 535, in pop
File "/home/simon/peapod-0.7.1-tabs_spaces/Peapod/feedparser.py", line 1408, in _resolveRelativeURIs
File "/home/simon/peapod-0.7.1-tabs_spaces/Peapod/feedparser.py", line 1258, in feed
File "/usr/lib/python2.5/sgmllib.py", line 99, in feed
self.goahead(0)
File "/usr/lib/python2.5/sgmllib.py", line 133, in goahead
k = self.parse_starttag(i)
File "/usr/lib/python2.5/sgmllib.py", line 291, in parse_starttag
self.finish_starttag(tag, attrs)
File "/usr/lib/python2.5/sgmllib.py", line 333, in finish_starttag
self.unknown_starttag(tag, attrs)
File "/home/simon/peapod-0.7.1-tabs_spaces/Peapod/feedparser.py", line 1402, in unknown_starttag
File "/home/simon/peapod-0.7.1-tabs_spaces/Peapod/feedparser.py", line 1398, in resolveURI
File "/usr/lib/python2.5/urlparse.py", line 288, in urljoin
return urlunparse((scheme, netloc, '/'.join(segments),
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 18: ordinal not in range(128)
---
Cheers,
Mungewell.
It appears that this is due to the way they do apostrophes.
The text of the RSS feed is:
--
This week we hear from two more of this year’s
--
which is actually
--
This week we hear from two more of this year<E2><80><99>s
--
Cheers,
Mungewell.