electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 83a422988ea2e58bf183e399c96a057d4f15e510
parent da7e48f3a7e00689e71628f9a39242e10c7b45d4
Author: ThomasV <thomasv@electrum.org>
Date:   Mon,  9 Jan 2017 13:02:48 +0100

ledger: ImportError fallback

Diffstat:
Mplugins/ledger/qt.py | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/plugins/ledger/qt.py b/plugins/ledger/qt.py @@ -11,8 +11,6 @@ from electrum_gui.qt.util import * from btchip.btchipPersoWizard import StartBTChipPersoDialog -from .auth2fa import LedgerAuthDialog - class Plugin(LedgerPlugin, QtPluginBase): icon_unpaired = ":icons/ledger_unpaired.png" icon_paired = ":icons/ledger.png" @@ -46,6 +44,11 @@ class Ledger_Handler(QtHandlerBase): dialog.show() def auth_dialog(self, data): + try: + from .auth2fa import LedgerAuthDialog + except ImportError as e: + self.message_dialog(e) + return dialog = LedgerAuthDialog(self, data) dialog.exec_() self.word = dialog.pin