mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-17 21:48:47 +00:00
fixup! feat(python): make failing to resume session hard-fail
This commit is contained in:
parent
a114214c8f
commit
31f9eff809
@ -149,7 +149,9 @@ class TrezorConnection:
|
|||||||
click.echo(
|
click.echo(
|
||||||
"Session-id stored in TREZOR_SESSION_ID is no longer valid. Call 'unset TREZOR_SESSION_ID' to clear it."
|
"Session-id stored in TREZOR_SESSION_ID is no longer valid. Call 'unset TREZOR_SESSION_ID' to clear it."
|
||||||
)
|
)
|
||||||
raise exceptions.FailedSessionResumption()
|
raise exceptions.FailedSessionResumption(
|
||||||
|
received_session_id=session.id
|
||||||
|
)
|
||||||
return session
|
return session
|
||||||
|
|
||||||
features = client.protocol.get_features()
|
features = client.protocol.get_features()
|
||||||
@ -169,7 +171,7 @@ class TrezorConnection:
|
|||||||
available_on_device = Capability.PassphraseEntry in features.capabilities
|
available_on_device = Capability.PassphraseEntry in features.capabilities
|
||||||
passphrase = get_passphrase(available_on_device, self.passphrase_on_host)
|
passphrase = get_passphrase(available_on_device, self.passphrase_on_host)
|
||||||
session = client.get_session(
|
session = client.get_session(
|
||||||
passphrase=passphrase, derive_cardano=derive_cardano, should_derive=True
|
passphrase=passphrase, derive_cardano=derive_cardano
|
||||||
)
|
)
|
||||||
return session
|
return session
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user