|
|
|
|
@ -146,7 +146,12 @@ class Ledger_Client():
|
|
|
|
|
|
|
|
|
|
def checkDevice(self): |
|
|
|
|
if not self.preflightDone: |
|
|
|
|
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): |
|
|
|
|
|