tfix: call read_wallet_config only if there is a wallet_path value in options - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 9f36ef39313001ab96e84527990d453c8004da30 DIR parent cc32b01bd3a7b01116a5180d085b7fb8528ae673 HTML 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: M lib/simple_config.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) --- DIR diff --git a/lib/simple_config.py b/lib/simple_config.py t@@ -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 = {}