Skip to content

Commit dccbda7

Browse files
committed
Fix exception in get_controller_class
1 parent 95c7fbc commit dccbda7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Windows.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ def get_controller_class(self, controller):
8888
if interface:
8989
return shared.USBControllerTypes(interface)
9090
service = self.get_property_from_wmi(controller["identifiers"]["instance_id"], PnpDeviceProperties.SERVICE)
91+
if not isinstance(service, str):
92+
shared.debug(f"Unknown controller type for interface {interface} and service {service}!")
93+
return shared.USBControllerTypes.Unknown
9194
if service.lower() == "usbxhci":
9295
return shared.USBControllerTypes.XHCI
9396
elif service.lower() == "usbehci":

base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from Scripts import shared, utils
1717

18-
CURRENT_VERSION = "0.0.5"
18+
CURRENT_VERSION = "0.0.6"
1919

2020

2121
class Colors(Enum):

0 commit comments

Comments
 (0)