URI: 
       tset self.wallet to None in plugin constructor - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit f302c9064991bc44ae8ce1a0f790f550ded196e3
   DIR parent 0934976f3ab1b39fddc65892f809b42b9c6ff89f
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Tue, 17 Feb 2015 11:39:06 +0100
       
       set self.wallet to None in plugin constructor
       
       Diffstat:
         M lib/plugins.py                      |       1 +
         M plugins/exchange_rate.py            |       3 ++-
       
       2 files changed, 3 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/lib/plugins.py b/lib/plugins.py
       t@@ -71,6 +71,7 @@ class BasePlugin:
            def __init__(self, config, name):
                self.name = name
                self.config = config
       +        self.wallet = None
                # add self to hooks
                for k in dir(self):
                    if k in hook_names:
   DIR diff --git a/plugins/exchange_rate.py b/plugins/exchange_rate.py
       t@@ -495,7 +495,6 @@ class Plugin(BasePlugin):
        
            @hook
            def load_wallet(self, wallet):
       -        self.wallet = wallet
                tx_list = {}
                for item in self.wallet.get_tx_history(self.wallet.storage.get("current_account", None)):
                    tx_hash, conf, is_mine, value, fee, balance, timestamp = item
       t@@ -555,6 +554,8 @@ class Plugin(BasePlugin):
                    return
                if not self.resp_hist:
                    return
       +        if not self.wallet:
       +            return
        
                self.win.is_edit = True
                self.win.history_list.setColumnCount(6)