URI: 
       tfix plugin_loader in storage - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 00abc60cdc2081b24c0c61fc1af73834b4e45ade
   DIR parent 776f09b50e92020aabc0940ddf1c3360cf8894d4
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Fri,  3 Mar 2017 16:04:29 +0100
       
       fix plugin_loader in storage
       
       Diffstat:
         M lib/storage.py                      |       8 ++++----
       
       1 file changed, 4 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/lib/storage.py b/lib/storage.py
       t@@ -70,10 +70,6 @@ class WalletStorage(PrintError):
                self.file_exists = os.path.exists(self.path)
                self.modified = False
                self.pubkey = None
       -        # check here if I need to load a plugin
       -        t = self.get('wallet_type')
       -        l = plugin_loaders.get(t)
       -        if l: l()
        
            def decrypt(self, s, password):
                # Note: hardware wallets should use a seed-derived key and not require a password.
       t@@ -118,6 +114,10 @@ class WalletStorage(PrintError):
                    self.data = json.loads(s)
                except:
                    raise IOError("Cannot read wallet file '%s'" % self.path)
       +        # check here if I need to load a plugin
       +        t = self.get('wallet_type')
       +        l = plugin_loaders.get(t)
       +        if l: l()
        
            def get(self, key, default=None):
                with self.lock: