More resilience
This commit is contained in:
parent
33d3ad2a1a
commit
4e5cc4f502
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user