twizard: abort if device fails to create xpub - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 5e90b3a42d53c55515b7e62bf8568aeb35582e90 DIR parent 66f8fe764857339effcddfd54963d0106ef2377f HTML Author: ThomasV <thomasv@electrum.org> Date: Mon, 29 Aug 2016 08:47:48 +0200 wizard: abort if device fails to create xpub Diffstat: M lib/base_wizard.py | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) --- DIR diff --git a/lib/base_wizard.py b/lib/base_wizard.py t@@ -213,6 +213,9 @@ class BaseWizard(object): from keystore import hardware_keystore, bip44_derivation derivation = bip44_derivation(int(account_id)) xpub = self.plugin.get_xpub(device_info.device.id_, derivation, self) + if xpub is None: + self.show_error('Cannot read xpub from device') + return d = { 'type': 'hardware', 'hw_type': name,