URI: 
       tdo not raise BaseException - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 072ce9c7ac1dc5e8e0a092b93350f597e63cd3b6
   DIR parent 66173077302a8fc8ca8a86ec812941b8d1778dfa
  HTML Author: SomberNight <somber.night@protonmail.com>
       Date:   Mon, 25 Feb 2019 16:40:51 +0100
       
       do not raise BaseException
       
       Diffstat:
         M electrum/plugins/trustedcoin/trust… |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/electrum/plugins/trustedcoin/trustedcoin.py b/electrum/plugins/trustedcoin/trustedcoin.py
       t@@ -501,7 +501,7 @@ class TrustedCoinPlugin(BasePlugin):
        
            def make_seed(self, seed_type):
                if not is_any_2fa_seed_type(seed_type):
       -            raise BaseException('unexpected seed type: {}'.format(seed_type))
       +            raise Exception(f'unexpected seed type: {seed_type}')
                return Mnemonic('english').make_seed(seed_type=seed_type, num_bits=128)
        
            @hook
       t@@ -550,7 +550,7 @@ class TrustedCoinPlugin(BasePlugin):
            def xkeys_from_seed(self, seed, passphrase):
                t = seed_type(seed)
                if not is_any_2fa_seed_type(t):
       -            raise BaseException('unexpected seed type: {}'.format(t))
       +            raise Exception(f'unexpected seed type: {t}')
                words = seed.split()
                n = len(words)
                # old version use long seed phrases