electrum

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

commit 4a5bece492876ff6a1cef1102db5572c8065a655
parent 45aab8654d3e2cfb2d01aa04f55693411872f0eb
Author: ThomasV <thomasv@electrum.org>
Date:   Thu, 20 Oct 2016 08:38:13 +0200

fix #1987

Diffstat:
Mplugins/ledger/ledger.py | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/plugins/ledger/ledger.py b/plugins/ledger/ledger.py @@ -146,7 +146,12 @@ class Ledger_Client(): def checkDevice(self): if not self.preflightDone: - self.perform_hw1_preflight() + try: + self.perform_hw1_preflight() + except BTChipException as e: + if (e.sw == 0x6d00): + raise BaseException("Device not in Bitcoin mode") + raise e self.preflightDone = True def password_dialog(self, msg=None):