ttrezor/kk: when using old fw, wizard did not display instructions properly - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 8f17f38b02406ff4f90940ea66dda4b5f93bf227
DIR parent 0186f09c271a8b5485b53ec0e16fd98b9591b929
HTML Author: SomberNight <somber.night@protonmail.com>
Date: Wed, 18 Jul 2018 20:17:03 +0200
ttrezor/kk: when using old fw, wizard did not display instructions properly
Diffstat:
M electrum/plugins/keepkey/keepkey.py | 5 ++++-
M electrum/plugins/trezor/trezor.py | 5 ++++-
2 files changed, 8 insertions(+), 2 deletions(-)
---
DIR diff --git a/electrum/plugins/keepkey/keepkey.py b/electrum/plugins/keepkey/keepkey.py
t@@ -141,7 +141,10 @@ class KeepKeyPlugin(HW_PluginBase):
'download the updated firmware from {}')
.format(self.device, client.label(), self.firmware_URL))
self.print_error(msg)
- handler.show_error(msg)
+ if handler:
+ handler.show_error(msg)
+ else:
+ raise Exception(msg)
return None
return client
DIR diff --git a/electrum/plugins/trezor/trezor.py b/electrum/plugins/trezor/trezor.py
t@@ -157,7 +157,10 @@ class TrezorPlugin(HW_PluginBase):
'download the updated firmware from {}')
.format(self.device, client.label(), self.firmware_URL))
self.print_error(msg)
- handler.show_error(msg)
+ if handler:
+ handler.show_error(msg)
+ else:
+ raise Exception(msg)
return None
return client