1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-17 20:08:12 +00:00

fix(python): do not call EndSession in bootloader mode (fixes #1379)

This commit is contained in:
matejcik 2020-12-11 11:41:15 +01:00
parent 48024de685
commit 4d4d0e7216

View File

@ -398,9 +398,12 @@ class TrezorClient:
The session will become invalid until `init_device()` is called 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
try:
if not self.features.bootloader_mode:
self.call(messages.EndSession())
except exceptions.TrezorFailure:
# A failure most likely means that the FW version does not support