From 5c095016324c4b1ad701cb999f9bbcae1a2ab0aa Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Tue, 11 Mar 2025 16:09:42 +0100 Subject: [PATCH] fix(python): open transport before get protocol in client --- python/src/trezorlib/cli/trezorctl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/trezorlib/cli/trezorctl.py b/python/src/trezorlib/cli/trezorctl.py index 43c6d0431a..42865ef51d 100755 --- a/python/src/trezorlib/cli/trezorctl.py +++ b/python/src/trezorlib/cli/trezorctl.py @@ -294,8 +294,8 @@ def list_devices(no_resolve: bool) -> Optional[Iterable["Transport"]]: for transport in enumerate_devices(): try: - client = get_client(transport) transport.open() + client = get_client(transport) description = format_device_name(client.features) except DeviceIsBusy: description = "Device is in use by another process"