|
|
@ -398,9 +398,12 @@ class TrezorClient:
|
|
|
|
|
|
|
|
|
|
|
|
The session will become invalid until `init_device()` is called again.
|
|
|
|
The session will become invalid until `init_device()` is called again.
|
|
|
|
If passphrase is enabled, further actions will prompt for it again.
|
|
|
|
If passphrase is enabled, further actions will prompt for it again.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This is a no-op in bootloader mode, as it does not support session management.
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
# since: 2.3.4, 1.9.4
|
|
|
|
# since: 2.3.4, 1.9.4
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if not self.features.bootloader_mode:
|
|
|
|
self.call(messages.EndSession())
|
|
|
|
self.call(messages.EndSession())
|
|
|
|
except exceptions.TrezorFailure:
|
|
|
|
except exceptions.TrezorFailure:
|
|
|
|
# A failure most likely means that the FW version does not support
|
|
|
|
# A failure most likely means that the FW version does not support
|
|
|
|