[IMP] web: improve qweb concatenation error logging

This commit is contained in:
Fabien Meghazi
2017-04-10 16:01:30 +02:00
parent 4585b14cd1
commit aafa2f12c4
+5 -1
View File
@@ -200,7 +200,11 @@ def concat_xml(file_list):
contents = fp.read()
checksum.update(contents)
fp.seek(0)
xml = ElementTree.parse(fp).getroot()
try:
xml = ElementTree.parse(fp).getroot()
except ElementTree.ParseError as e:
_logger.error("Could not parse file %s: %s" % (fname, e.msg))
raise e
if root is None:
root = ElementTree.Element(xml.tag)