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

client: fix bug with old firmware that doesn't send the "model" field

This commit is contained in:
matejcik 2018-12-06 15:07:50 +01:00
parent 23feb24573
commit 1179bd407b

View File

@ -200,7 +200,8 @@ class TrezorClient:
def is_outdated(self):
if self.features.bootloader_mode:
return False
required_version = MINIMUM_FIRMWARE_VERSION[self.features.model]
model = self.features.model or "1"
required_version = MINIMUM_FIRMWARE_VERSION[model]
return self.version < required_version
def check_firmware_version(self, warn_only=False):