1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-12 22:26:08 +00:00

feat(python): implement session based trezorctl

[no changelog]
This commit is contained in:
M1nd3r 2025-02-04 15:18:39 +01:00
parent bdf0cbbdb5
commit 035e817ed9

View File

@ -273,6 +273,11 @@ class TrezorConnection:
empty_passphrase=empty_passphrase,
must_resume=must_resume,
)
except exceptions.DeviceLockedException:
click.echo(
"Device is locked, enter a pin on the device.",
err=True,
)
except transport.DeviceIsBusy:
click.echo("Device is in use by another process.")
sys.exit(1)