More resilience

This commit is contained in:
Sam Ruby 2010-05-14 16:55:21 -04:00
parent 33d3ad2a1a
commit 4e5cc4f502

View File

@ -230,7 +230,7 @@ def source(xsource, source, bozo, format):
author(xsource, 'contributor', contributor) author(xsource, 'contributor', contributor)
links(xsource, source) 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 = xdoc.createElement('link')
xlink.setAttribute('href', source.get('href')) xlink.setAttribute('href', source.get('href'))
xsource.appendChild(xlink) xsource.appendChild(xlink)