mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-11 16:27:19 +10:00
install.py: Add error handling for read errors
This commit is contained in:
@@ -78,7 +78,11 @@ class InstallAutomaticPatchingServices:
|
||||
|
||||
kexts = []
|
||||
for kext in Path("/Library/Extensions").glob("*.kext"):
|
||||
if not Path(f"{kext}/Contents/Info.plist").exists():
|
||||
try:
|
||||
if not Path(f"{kext}/Contents/Info.plist").exists():
|
||||
continue
|
||||
except Exception as e:
|
||||
logging.info(f" - Failed to check if {kext.name} is a directory: {e}")
|
||||
continue
|
||||
try:
|
||||
kext_plist = plistlib.load(open(f"{kext}/Contents/Info.plist", "rb"))
|
||||
|
||||
Reference in New Issue
Block a user