From 8b87fa67ad03d8c6f73b92da8a48a8dabfb865e6 Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Mon, 23 Sep 2013 14:35:59 +0200 Subject: [PATCH] Fixed issue with alternate link instead of content for atom entries ...won't let me generate atom entries without a content tag even though I have a correct link tag... --- feedgen/entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feedgen/entry.py b/feedgen/entry.py index 708b2a4..9bbe571 100644 --- a/feedgen/entry.py +++ b/feedgen/entry.py @@ -73,7 +73,7 @@ class FeedEntry(object): # An entry must contain an alternate link if there is no content element. if not self.__atom_content: - if not True in [ l.get('type') == 'alternate' \ + if not True in [ l.get('rel') == 'alternate' \ for l in self.__atom_link or [] ]: raise ValueError('Entry must contain an alternate link or ' + 'a content element.')