From c7a7537ffeefde50578f0c291d5b30e45e184aa0 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 19 Jun 2018 16:43:00 +0200 Subject: [PATCH] tools: update keyctl-proxy to work with new python-trezor --- tools/keyctl-proxy | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tools/keyctl-proxy b/tools/keyctl-proxy index 4834fb42f9..3b5a6b7173 100755 --- a/tools/keyctl-proxy +++ b/tools/keyctl-proxy @@ -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):