fix pyusb implementation
The `StenographMachine` class does not have a `_error` method.
This commit is contained in:
parent
d3a13abba6
commit
3e536c8a21
1 changed files with 1 additions and 5 deletions
|
|
@ -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)]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue