Merge pull request #70 from R0rt1z2/master

usblib: fix windows kernel driver issues again
This commit is contained in:
Bjoern Kerler 2021-04-08 10:39:58 +02:00 committed by GitHub
commit 2aadfacbbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,7 +104,7 @@ class UsbClass(metaclass=LogBase):
return False
try:
self.device.set_configuration()
except Exception(UsbClass) as e:
except Exception as e:
self.debug(str(e))
pass
self.configuration = self.device.get_active_configuration()