fix pyusb implementation

The `StenographMachine` class does not have a `_error` method.
This commit is contained in:
Benoit Pierre 2021-05-26 22:31:56 +02:00
commit 3e536c8a21

View file

@ -509,11 +509,7 @@ else:
return self._connected
# Copy the default configuration.
try:
usb_device.set_configuration()
except core.USBError as e:
log.warning('Error connecting: %s', e)
self._error()
usb_device.set_configuration()
config = usb_device.get_active_configuration()
interface = config[(0, 0)]