diff --git a/feedgen/feed.py b/feedgen/feed.py index 710aadc..b2a206f 100644 --- a/feedgen/feed.py +++ b/feedgen/feed.py @@ -165,7 +165,7 @@ class FeedGenerator(object): uri = etree.SubElement(contrib, 'uri') uri.text = c.get('uri') - if self.__atom_generator: + if self.__atom_generator and self.__atom_generator.get('value'): generator = etree.SubElement(feed, 'generator') generator.text = self.__atom_generator['value'] if self.__atom_generator.get('uri'):