From a091f3252077ddbdb8c53f6e4a440373962b280c Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Thu, 31 Oct 2024 17:08:57 +0700 Subject: [PATCH] Prevent errors in cases with missing storage controller information --- Scripts/kext_maestro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/kext_maestro.py b/Scripts/kext_maestro.py index f05191c..74211ec 100644 --- a/Scripts/kext_maestro.py +++ b/Scripts/kext_maestro.py @@ -228,7 +228,7 @@ class KextMaestro: if controller_props.get("Device ID") in pci_data.RealtekCardReaderIDs: selected_kexts.append("RealtekCardReader") - for controller_name, controller_props in hardware_report.get("Storage Controllers").items(): + for controller_name, controller_props in hardware_report.get("Storage Controllers", {}).items(): if "NVMe" in controller_name or "NVM Express" in controller_name: selected_kexts.append("NVMeFix") else: