mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-15 11:51:02 +00:00
Do not write empty tag attributes.
This commit is contained in:
parent
900fc38f6a
commit
cdb00e9ef8
1 changed files with 3 additions and 1 deletions
|
|
@ -72,7 +72,9 @@ class CustomXMLLogger (xmllog.XMLLogger):
|
|||
if url_data.warnings and self.has_part('warning'):
|
||||
self.xml_starttag(u"warnings")
|
||||
for tag, data in url_data.warnings:
|
||||
attrs = {"tag": tag}
|
||||
attrs = {}
|
||||
if tag:
|
||||
attrs["tag"] = tag
|
||||
self.xml_tag(u"warning", data, attrs)
|
||||
self.xml_endtag(u"warnings")
|
||||
if self.has_part("result"):
|
||||
|
|
|
|||
Loading…
Reference in a new issue