mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
ledger: newer fw throws different exception when not in bitcoin mode
This commit is contained in:
parent
ee3ab5361e
commit
2ce2b36846
1 changed files with 2 additions and 2 deletions
|
@ -180,8 +180,8 @@ class Ledger_Client():
|
|||
try:
|
||||
self.perform_hw1_preflight()
|
||||
except BTChipException as e:
|
||||
if (e.sw == 0x6d00):
|
||||
raise BaseException("Device not in Bitcoin mode")
|
||||
if (e.sw == 0x6d00 or e.sw == 0x6f00):
|
||||
raise BaseException(_("Device not in Bitcoin mode")) from e
|
||||
raise e
|
||||
self.preflightDone = True
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue