Fix #15: check for tags before using them in the feeds.

This commit is contained in:
Alexis Metaireau 2010-12-01 18:45:44 +00:00
commit 3b7c546136

View file

@ -91,7 +91,7 @@ class Generator(object):
title=element.title,
link= "%s/%s" % (site_url, element.url),
description=element.content,
categories=element.tags,
categories=element.tags if hasattr(element, "tags") else None,
author_name=getattr(element, 'author', 'John Doe'),
pubdate=element.date)