From 4e5cc4f5020d23ba8b87bf3eb223379a4fa377e5 Mon Sep 17 00:00:00 2001 From: Sam Ruby Date: Fri, 14 May 2010 16:55:21 -0400 Subject: [PATCH] More resilience --- planet/reconstitute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planet/reconstitute.py b/planet/reconstitute.py index d08343d..daaa314 100644 --- a/planet/reconstitute.py +++ b/planet/reconstitute.py @@ -230,7 +230,7 @@ def source(xsource, source, bozo, format): author(xsource, 'contributor', contributor) links(xsource, source) - if not source.links and source.has_key('href'): #rss + if not source.has_key('links') and source.has_key('href'): #rss xlink = xdoc.createElement('link') xlink.setAttribute('href', source.get('href')) xsource.appendChild(xlink)