The ElementTree.ParseError class is undocumented and isn't available
in python-2.6, so use its SyntaxError base class instead.
os.path.join(checkdir, "metadata.xml"),
parser=xml.etree.ElementTree.XMLParser(
target=_MetadataTreeBuilder()))
- except (xml.etree.ElementTree.ParseError, ExpatError, EnvironmentError) as e:
+ except (ExpatError, SyntaxError, EnvironmentError) as e:
metadata_bad = True
stats["metadata.bad"] += 1
fails["metadata.bad"].append("%s/metadata.xml: %s" % (x, e))