Skip to content

Commit

Permalink
Fix exception in get_controller_class
Browse files Browse the repository at this point in the history
  • Loading branch information
dhinakg committed May 3, 2021
1 parent 95c7fbc commit dccbda7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Windows.py
Expand Up @@ -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":
Expand Down
2 changes: 1 addition & 1 deletion base.py
Expand Up @@ -15,7 +15,7 @@

from Scripts import shared, utils

CURRENT_VERSION = "0.0.5"
CURRENT_VERSION = "0.0.6"


class Colors(Enum):
Expand Down

0 comments on commit dccbda7

Please sign in to comment.