This commit is contained in:
ThomasV 2016-10-20 08:38:13 +02:00
parent 45aab8654d
commit 4a5bece492

View file

@ -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):