This commit is contained in:
Cayo Puigdefabregas 2024-12-18 10:18:10 +01:00
parent 78de86c43a
commit 9d3ef0d144

View file

@ -92,7 +92,7 @@ class Evidence:
self.inxi = ev["output"] self.inxi = ev["output"]
else: else:
dmidecode_raw = self.doc["data"]["dmidecode"] dmidecode_raw = self.doc["data"]["dmidecode"]
inxi_raw = self.doc["data"]["inxi"] inxi_raw = self.doc["data"].get("inxi")
self.dmi = DMIParse(dmidecode_raw) self.dmi = DMIParse(dmidecode_raw)
try: try:
self.inxi = json.loads(inxi_raw) self.inxi = json.loads(inxi_raw)