From 8fc5299d3829ea88ed4d5da68d1df17e4f66ff10 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 8 Jul 2020 12:32:42 -0400 Subject: [PATCH] Avoid failing if CPU features are missing --- daemon-common/common.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/daemon-common/common.py b/daemon-common/common.py index 4eda0f55..200ca53c 100644 --- a/daemon-common/common.py +++ b/daemon-common/common.py @@ -148,8 +148,11 @@ def getDomainExtraDetails(parsed_xml): # def getDomainCPUFeatures(parsed_xml): dfeatures = [] - for feature in parsed_xml.features.getchildren(): - dfeatures.append(feature.tag) + try: + for feature in parsed_xml.features.getchildren(): + dfeatures.append(feature.tag) + except: + pass return dfeatures