1
0

Updated TREZOR plugin to work with trezorlib>=0.8.0.

This commit is contained in:
slush
2017-12-02 18:34:04 +01:00
parent 0506985487
commit a30d59912e
2 changed files with 6 additions and 11 deletions

View File

@@ -76,13 +76,8 @@ class TrezorCompatiblePlugin(HW_PluginBase):
def _try_hid(self, device):
self.print_error("Trying to connect over USB...")
if device.interface_number == 1:
pair = [None, device.path]
else:
pair = [device.path, None]
try:
return self.hid_transport(pair)
return self.hid_transport(device)
except BaseException as e:
# see fdb810ba622dc7dbe1259cbafb5b28e19d2ab114
# raise