commit 848f4b9ae0a9445c328b4d53635558e22c5c7dbb
parent 3887ed32e5e1770def8c3dfe5eb1e66a7eb14ac9
Author: ThomasV <thomasv@electrum.org>
Date: Thu, 1 Mar 2018 16:59:22 +0100
Merge pull request #3992 from matejcik/master
Trezor model T does not provide bootloader hash
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/plugins/trezor/qt_generic.py b/plugins/trezor/qt_generic.py
@@ -321,8 +321,11 @@ class SettingsDialog(WindowModalDialog):
def update(features):
self.features = features
set_label_enabled()
- bl_hash = bh2u(features.bootloader_hash)
- bl_hash = "\n".join([bl_hash[:32], bl_hash[32:]])
+ if features.bootloader_hash:
+ bl_hash = bh2u(features.bootloader_hash)
+ bl_hash = "\n".join([bl_hash[:32], bl_hash[32:]])
+ else:
+ bl_hash = "N/A"
noyes = [_("No"), _("Yes")]
endis = [_("Enable Passphrases"), _("Disable Passphrases")]
disen = [_("Disabled"), _("Enabled")]