django-newswall icon indicating copy to clipboard operation
django-newswall copied to clipboard

date_parsed not part of feedparser.item

Open jheasly opened this issue 11 years ago • 0 comments

I think you can remove this:

            if hasattr(entry, 'date_parsed'):
                timestamp = datetime.fromtimestamp(
                    time.mktime(entry.date_parsed))

In the feedparser 5.1.3 docs, date_parsed isn't an attribute of a feed entry so that hasattr will never evaluate to True.

jheasly avatar Jun 20 '14 22:06 jheasly