diff --git a/feedgen/entry.py b/feedgen/entry.py index 00e4c94..09ad9bd 100644 --- a/feedgen/entry.py +++ b/feedgen/entry.py @@ -137,7 +137,7 @@ class FeedEntry(object): summary.text = self.__atom_summary for c in self.__atom_category or []: - cat = etree.SubElement(feed, 'category', term=c['term']) + cat = etree.SubElement(entry, 'category', term=c['term']) if c.get('schema'): cat.attrib['schema'] = c['schema'] if c.get('label'):