AlphacrucisCollege / django-template-utils

Fork of (abandoned?) package used in ac.edu.au. Exported via GoogleCodeExport.
https://bitbucket.org/ubernostrum/django-template-utils
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Attribute error when feed item does not contain update_parsed. #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. {% load feeds %}{% include_feed 
"http://www.somefeed.com/a/feed/with/no/updated_parsed" 5 
feed_includes/mostpop.html %}

What is the expected output? What do you see instead?
Expected output is a rendred rss feed.

Instead I get:
TemplateSyntaxError 
Caught AttributeError while rendering: object has no attribute 'updated_parsed'

The feed I am using has no updated date anywhere in the feed causing the 
feedparser to crash trying to get the item's updated parsed

What version of the product are you using? On what operating system?
latest from subversion (revision 109).
Happens on all operating systems I have tried.

Please provide any additional information below.
I have provided a patch which fixes this problem for me.

Original issue reported on code.google.com by mrfun...@gmail.com on 7 Jul 2010 at 9:21

Attachments: