tools: update keyctl-proxy to work with new python-trezor

pull/25/head
Pavol Rusnak 6 years ago
parent 8e270fbabd
commit c7a7537ffe
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -14,12 +14,8 @@ indexmap = {
def get_trezor():
from trezorlib.client import TrezorClient
from trezorlib.transport_hid import HidTransport
devices = HidTransport.enumerate()
if len(devices) > 0:
return TrezorClient(devices[0])
else:
raise Exception('No TREZOR found')
from trezorlib.transport import get_transport
return TrezorClient(get_transport())
def get_path(index):

Loading…
Cancel
Save