tfix #1987 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 4a5bece492876ff6a1cef1102db5572c8065a655 DIR parent 45aab8654d3e2cfb2d01aa04f55693411872f0eb HTML Author: ThomasV <thomasv@electrum.org> Date: Thu, 20 Oct 2016 08:38:13 +0200 fix #1987 Diffstat: M plugins/ledger/ledger.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- DIR diff --git a/plugins/ledger/ledger.py b/plugins/ledger/ledger.py t@@ -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):