URI: 
       tMerge pull request #6076 from JeremyRand/initial-download-exception - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit b31efdc3e7bfc763551423ce030250d22889da43
   DIR parent 6307e13549486f31ac22e65f1a79b83e8dcba66d
  HTML Author: ghost43 <somber.night@protonmail.com>
       Date:   Wed,  8 Apr 2020 08:34:40 +0000
       
       Merge pull request #6076 from JeremyRand/initial-download-exception
       
       Use specific Exception when chain isn't synced
       Diffstat:
         M electrum/commands.py                |       6 +++++-
       
       1 file changed, 5 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/electrum/commands.py b/electrum/commands.py
       t@@ -68,6 +68,10 @@ if TYPE_CHECKING:
        known_commands = {}  # type: Dict[str, Command]
        
        
       +class NotSynchronizedException(Exception):
       +    pass
       +
       +
        def satoshis(amount):
            # satoshi conversion must not be performed by the parser
            return int(COIN*Decimal(amount)) if amount not in ['!', None] else amount
       t@@ -822,7 +826,7 @@ class Commands:
                if not isinstance(wallet, Deterministic_Wallet):
                    raise Exception("This wallet is not deterministic.")
                if not wallet.is_up_to_date():
       -            raise Exception("Wallet not fully synchronized.")
       +            raise NotSynchronizedException("Wallet not fully synchronized.")
                return wallet.min_acceptable_gap()
        
            @command('w')