1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-22 21:30:56 +00:00

python: only set session_id from Features on firmwares that send it

This commit is contained in:
matejcik 2020-02-10 16:15:45 +01:00
parent 6dace16033
commit 7f63cf28b0

View File

@ -268,7 +268,8 @@ class TrezorClient:
self.features.patch_version,
)
self.check_firmware_version(warn_only=True)
self.session_id = self.features.session_id
if self.features.session_id is not None:
self.session_id = self.features.session_id
def is_outdated(self):
if self.features.bootloader_mode: