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...
This commit is contained in:
parent
647d96881e
commit
8b87fa67ad
1 changed files with 1 additions and 1 deletions
|
@ -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.')
|
||||
|
|
Loading…
Reference in a new issue