fix #1987
This commit is contained in:
@@ -146,7 +146,12 @@ class Ledger_Client():
|
|||||||
|
|
||||||
def checkDevice(self):
|
def checkDevice(self):
|
||||||
if not self.preflightDone:
|
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
|
self.preflightDone = True
|
||||||
|
|
||||||
def password_dialog(self, msg=None):
|
def password_dialog(self, msg=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user