Browse Source

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

283
ThomasV 13 years ago
parent
commit
9f36ef3931
  1. 9
      lib/simple_config.py

9
lib/simple_config.py

@ -31,8 +31,13 @@ class SimpleConfig:
def __init__(self, options=None): def __init__(self, options=None):
self.wallet_config = {} self.wallet_config = {}
if options and options.wallet_path: if options:
self.read_wallet_config(options.wallet_path) # 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 # system conf, readonly
self.system_config = {} self.system_config = {}

Loading…
Cancel
Save