Minor fixes to CI python scripts

- enhanced CustomCommand logging
- print ParseError
This commit is contained in:
Guido Casati
2024-04-12 15:53:43 +02:00
parent cfaa182f57
commit 72337b9c43
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -579,8 +579,8 @@ elif re.match('^InitiateHtml$', mode, re.IGNORECASE):
if (os.path.isfile(xml_test_file)):
try:
xmlTree = ET.parse(xml_test_file)
except:
print("Error while parsing file: " + xml_test_file)
except Exception as e:
print(f"Error: {e} while parsing file: {xml_test_file}.")
xmlRoot = xmlTree.getroot()
HTML.htmlTabRefs.append(xmlRoot.findtext('htmlTabRef',default='test-tab-' + str(count)))
HTML.htmlTabNames.append(xmlRoot.findtext('htmlTabName',default='test-tab-' + str(count)))