From 1179bd407b82b2f102f82085b512492366952287 Mon Sep 17 00:00:00 2001 From: matejcik Date: Thu, 6 Dec 2018 15:07:50 +0100 Subject: [PATCH] client: fix bug with old firmware that doesn't send the "model" field --- trezorlib/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trezorlib/client.py b/trezorlib/client.py index fc4f5d55b..1638112ff 100644 --- a/trezorlib/client.py +++ b/trezorlib/client.py @@ -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):