From ba83ccba883ee88691b84882b406ad111dbc7faa Mon Sep 17 00:00:00 2001 From: pedro Date: Tue, 15 Oct 2024 13:54:16 +0200 Subject: [PATCH] we know lshw might fail, do not load as json --- workbench-script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workbench-script.py b/workbench-script.py index 0fecfa6..7cc19bf 100644 --- a/workbench-script.py +++ b/workbench-script.py @@ -250,7 +250,7 @@ def get_data(all_disks): dmidecode = 'sudo dmidecode' lspci = 'sudo lspci -vv' data = { - 'lshw': json.loads(exec_cmd(lshw) or "{}"), + 'lshw': exec_cmd(lshw) or "{}", 'disks': smartctl(all_disks), 'hwinfo': exec_cmd(hwinfo), 'dmidecode': exec_cmd(dmidecode),