URI: 
       tfix: check if wallet has master_private_keys - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit a195ca5c07f5c04314537b29cd77e8d14c5c0f9c
   DIR parent 43d2fab9a0ccbfd039b30abede43fa8f23a84125
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Mon, 14 Jul 2014 03:21:51 +0200
       
       fix: check if wallet has master_private_keys
       
       Diffstat:
         M lib/wallet.py                       |      11 ++++++-----
       
       1 file changed, 6 insertions(+), 5 deletions(-)
       ---
   DIR diff --git a/lib/wallet.py b/lib/wallet.py
       t@@ -816,11 +816,12 @@ class Abstract_Wallet(object):
                    imported_account.update_password(old_password, new_password)
                    self.save_accounts()
        
       -        for k, v in self.master_private_keys.items():
       -            b = pw_decode(v, old_password)
       -            c = pw_encode(b, new_password)
       -            self.master_private_keys[k] = c
       -        self.storage.put('master_private_keys', self.master_private_keys, True)
       +        if hasattr(self, 'master_private_keys'):
       +            for k, v in self.master_private_keys.items():
       +                b = pw_decode(v, old_password)
       +                c = pw_encode(b, new_password)
       +                self.master_private_keys[k] = c
       +            self.storage.put('master_private_keys', self.master_private_keys, True)
        
                self.use_encryption = (new_password != None)
                self.storage.put('use_encryption', self.use_encryption,True)