mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-05-20 15:58:46 +00:00
fix(python): open transport before get protocol in client
This commit is contained in:
parent
f3ae659428
commit
cec4637b7e
@ -295,8 +295,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"
|
||||
|
Loading…
Reference in New Issue
Block a user