mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-17 13:22:54 +10:00
device_probe.py: Extra error handling
This commit is contained in:
@@ -52,7 +52,7 @@ class PCIDevice:
|
||||
if type(ioname) is bytes:
|
||||
ioname = ioname.strip(b"\0").decode()
|
||||
|
||||
if ioname.startswith("pci"):
|
||||
if ioname.startswith("pci") and "," in ioname:
|
||||
vendor_id_unspoofed, device_id_unspoofed = (int(i, 16) for i in ioname[3:].split(","))
|
||||
if anti_spoof:
|
||||
vendor_id = vendor_id_unspoofed
|
||||
|
||||
Reference in New Issue
Block a user