diff --git a/electrum/plugins/keepkey/keepkey.py b/electrum/plugins/keepkey/keepkey.py index e0f568b83..611fe8442 100644 --- a/electrum/plugins/keepkey/keepkey.py +++ b/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 diff --git a/electrum/plugins/trezor/trezor.py b/electrum/plugins/trezor/trezor.py index 77af68755..7fecd1e6f 100644 --- a/electrum/plugins/trezor/trezor.py +++ b/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