-
-
Notifications
You must be signed in to change notification settings - Fork 710
fix(python): correct CLI error message on uninitialized device #5613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
model | device_test | click_test | persistence_test |
---|---|---|---|
T2T1 | |||
T3B1 | |||
T3T1 | |||
T3W1 |
Latest CI run: 17149560160
we already have please call the exception |
@@ -307,6 +307,9 @@ def session_context( | |||
sys.exit(1) | |||
except exceptions.FailedSessionResumption: | |||
sys.exit(1) | |||
except exceptions.DerivationOnUninitaizedDeviceError: | |||
click.echo("Device is not initialized.") | |||
sys.exit(1) | |||
except Exception: | |||
click.echo("Failed to find a Trezor device.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we definitely want to emit the exception in the log
maybe it's also a good idea to say f"(error was: {e})"
or something?
Following #5613. [no changelog]
Following #5613. [no changelog]
Following #5613. [no changelog]
Following #5613. [no changelog]
[no changelog]