From ca5f331e43908158bafc9979a526ad0361a932ac Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Tue, 4 Feb 2025 15:18:39 +0100 Subject: [PATCH] feat(python): implement session based trezorctl [no changelog] --- python/src/trezorlib/cli/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/src/trezorlib/cli/__init__.py b/python/src/trezorlib/cli/__init__.py index 9519db9ed0..07e4fcda90 100644 --- a/python/src/trezorlib/cli/__init__.py +++ b/python/src/trezorlib/cli/__init__.py @@ -267,6 +267,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)