sys_patch.py: Add error handling for non-str entries

This commit is contained in:
Mykola Grymalyuk
2023-05-21 19:52:50 -06:00
parent 89ef9fb904
commit a92cbe94a1
2 changed files with 4 additions and 0 deletions

View File

@@ -492,6 +492,8 @@ class PatchSysVolume:
if Path(oclp_path).exists():
oclp_plist_data = plistlib.load(Path(oclp_path).open("rb"))
for key in oclp_plist_data:
if isinstance(oclp_plist_data[key], (bool, int)):
continue
if "Install" not in oclp_plist_data[key]:
continue
for location in oclp_plist_data[key]["Install"]: