pombreda / feedparser

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

`_parse_date()` crashes when passed `None` #282

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Parse attached xml file.

What is the expected output? What do you see instead?
Something else than a crash.

What version of the product are you using? On what operating system?
Version 5.0.1. (r554). Python 2.5.4 on Windows XP.

Please provide any additional information below.
Problem is the invalid description of item:
<description>Foo/description>

Original issue reported on code.google.com by ampparit...@gmail.com on 7 Jun 2011 at 11:22

Attachments:

GoogleCodeExporter commented 9 years ago
This is occurring because feedparser is passing `None` to the date parsers, but 
isn't yet coded to catch TypeError exceptions. I'll fix this and add a unit 
test when I have time.

Original comment by kurtmckee on 13 Jun 2011 at 12:37

GoogleCodeExporter commented 9 years ago
Fixed in r557. Thanks for reporting this!

Original comment by kurtmckee on 18 Jun 2011 at 4:49