diff --git a/feedgen/entry.py b/feedgen/entry.py index 28628a9..708b2a4 100644 --- a/feedgen/entry.py +++ b/feedgen/entry.py @@ -574,7 +574,7 @@ class FeedEntry(object): :param type: Mimetype of the linked media. :returns: Data of the enclosure element. ''' - if not uri is None: + if not url is None: self.link( href=url, rel='enclosure', type=type, length=length ) return self.__rss_enclosure