From 45aab8654d3e2cfb2d01aa04f55693411872f0eb Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 20 Oct 2016 08:32:44 +0200 Subject: [PATCH] fix crash #1987 --- lib/base_wizard.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/base_wizard.py b/lib/base_wizard.py index cd4d1b14..9edaa20f 100644 --- a/lib/base_wizard.py +++ b/lib/base_wizard.py @@ -208,7 +208,12 @@ class BaseWizard(object): def on_device(self, name, device_info): self.plugin = self.plugins.get_plugin(name) - self.plugin.setup_device(device_info, self) + try: + self.plugin.setup_device(device_info, self) + except BaseException as e: + self.show_error(str(e)) + self.choose_hw_device() + return if self.wallet_type=='multisig': # There is no general standard for HD multisig. # This is partially compatible with BIP45; assumes index=0