HaveF / feedparser

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

ValueError: Invalid IPv6 URL trying to parse http://www.tbd.com/rss/all.xml #336

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. feedparser.parse('http://www.tbd.com/rss/all.xml')
2.
3.

What is the expected output? What do you see instead?
It should returned a parsed dictionary. Instead, it raises an exception 
ValueError: Invalid IPv6 URL

What version of the product are you using? On what operating system?
5.1.1 on both ubuntu and Mac OS X

Please provide any additional information below.
urlopen('http://www.tbd.com/rss/all.xml').read() returns the content of the 
feed with no problems; however, I noticed that one of the urls in the content 
is given as:
<a href="http://[http://www.showlistdc.com]">ShowListDC </a>
Not sure that is the problem, though.

Original issue reported on code.google.com by filippo....@gmail.com on 30 Mar 2012 at 8:59

GoogleCodeExporter commented 9 years ago
Whoops, I missed a code path that skipped the try-except clauses that should 
have fixed issue 321. Fixed in r694. Thanks for reporting this!

Original comment by kurtmckee on 5 Apr 2012 at 2:47