From 3288145189ee420cc7fd7bf5bdf937171a200dd0 Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Fri, 13 Sep 2024 17:15:52 +0700 Subject: [PATCH] Avoid crashes in case of missing information from the AIDA64 report --- Scripts/aida64.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Scripts/aida64.py b/Scripts/aida64.py index 339801c..e265d3f 100644 --- a/Scripts/aida64.py +++ b/Scripts/aida64.py @@ -114,8 +114,7 @@ class AIDA64: for controller_name, controller_props in storage_controllers.items(): bus_type = controller_props.get("Bus Type", "Unknown") if "PCI" in bus_type or "VID" in bus_type: - pci_device = controller_props.get("PCI Device") - if " SD " in pci_device or "MMC" in pci_device: + if " SD " in controller_name or "MMC" in controller_name: continue storage_controllers_info[self.get_unique_key(controller_props.get("PCI Device", controller_name), storage_controllers_info)] = {