diff --git a/Windows.py b/Windows.py index 19e4472..0e1e5fd 100644 --- a/Windows.py +++ b/Windows.py @@ -88,6 +88,9 @@ def get_controller_class(self, controller): if interface: return shared.USBControllerTypes(interface) service = self.get_property_from_wmi(controller["identifiers"]["instance_id"], PnpDeviceProperties.SERVICE) + if not isinstance(service, str): + shared.debug(f"Unknown controller type for interface {interface} and service {service}!") + return shared.USBControllerTypes.Unknown if service.lower() == "usbxhci": return shared.USBControllerTypes.XHCI elif service.lower() == "usbehci": diff --git a/base.py b/base.py index 90cfa9e..34ada5d 100644 --- a/base.py +++ b/base.py @@ -15,7 +15,7 @@ from Scripts import shared, utils -CURRENT_VERSION = "0.0.5" +CURRENT_VERSION = "0.0.6" class Colors(Enum):