From 37e996cd1809cc67ce697bebe676f46b50717b23 Mon Sep 17 00:00:00 2001 From: Aaron Swartz Date: Fri, 30 Jan 2004 12:00:00 +0000 Subject: [PATCH] Add rss2email v2.23 Fix for empty link tags. Downloaded from: http://web.archive.org/web/20040416224442/http://www.aaronsw.com/2002/rss2email/rss2email-2.23.py --- rss2email.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rss2email.py b/rss2email.py index 29d9376..37c05fd 100644 --- a/rss2email.py +++ b/rss2email.py @@ -12,7 +12,7 @@ Usage: python rss2email.py feedfile action [options] list delete n """ -__version__ = "2.22" +__version__ = "2.23" __author__ = "Aaron Swartz (me@aaronsw.com)" __copyright__ = "(C) 2004 Aaron Swartz. GNU GPL 2." ___contributors__ = ["Dean Jackson (dino@grorg.org)", @@ -151,7 +151,7 @@ def run(): content = getContent(i, f.url) id = getID(i, content) - if i.has_key('link'): frameid = link = e(i, 'link') + if i.has_key('link') and i['link']: frameid = link = e(i, 'link') else: frameid = id; link = None if f.seen.has_key(frameid) and f.seen[frameid] == id: -- 2.26.2