URI: 
       tledger: newer fw throws different exception when not in bitcoin mode - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 2ce2b368466a848afdf8c85b65fad98a5f338254
   DIR parent ee3ab5361efec791d75f29757b8b05d1b7b24862
  HTML Author: SomberNight <somber.night@protonmail.com>
       Date:   Sun, 18 Mar 2018 02:14:47 +0100
       
       ledger: newer fw throws different exception when not in bitcoin mode
       
       Diffstat:
         M plugins/ledger/ledger.py            |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/plugins/ledger/ledger.py b/plugins/ledger/ledger.py
       t@@ -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