Avoid failing if CPU features are missing

This commit is contained in:
Joshua Boniface 2020-07-08 12:32:42 -04:00
parent 37a58d35e8
commit 8fc5299d38
1 changed files with 5 additions and 2 deletions

View File

@ -148,8 +148,11 @@ def getDomainExtraDetails(parsed_xml):
# #
def getDomainCPUFeatures(parsed_xml): def getDomainCPUFeatures(parsed_xml):
dfeatures = [] dfeatures = []
try:
for feature in parsed_xml.features.getchildren(): for feature in parsed_xml.features.getchildren():
dfeatures.append(feature.tag) dfeatures.append(feature.tag)
except:
pass
return dfeatures return dfeatures