electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 9f36ef39313001ab96e84527990d453c8004da30
parent cc32b01bd3a7b01116a5180d085b7fb8528ae673
Author: ThomasV <thomasv@gitorious>
Date:   Fri, 12 Oct 2012 20:42:45 +0200

fix: call read_wallet_config only if there is a wallet_path value in options

Diffstat:
Mlib/simple_config.py | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/lib/simple_config.py b/lib/simple_config.py @@ -31,8 +31,13 @@ class SimpleConfig: def __init__(self, options=None): self.wallet_config = {} - if options and options.wallet_path: - self.read_wallet_config(options.wallet_path) + if options: + # this will call read_wallet_config only if there is a wallet_path value in options + try: + self.read_wallet_config(options.wallet_path) + except: + pass + # system conf, readonly self.system_config = {}