Skip to content

Commit

Permalink
fix #1987
Browse files Browse the repository at this point in the history
  • Loading branch information
ecdsa committed Oct 20, 2016
1 parent 45aab86 commit 4a5bece
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugins/ledger/ledger.py
Expand Up @@ -146,7 +146,12 @@ def perform_hw1_preflight(self):

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):
Expand Down

0 comments on commit 4a5bece

Please sign in to comment.