Browse Source

trezor/kk: when using old fw, wizard did not display instructions properly

master
SomberNight 8 years ago
parent
commit
8f17f38b02
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 5
      electrum/plugins/keepkey/keepkey.py
  2. 5
      electrum/plugins/trezor/trezor.py

5
electrum/plugins/keepkey/keepkey.py

@ -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

5
electrum/plugins/trezor/trezor.py

@ -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

Loading…
Cancel
Save