git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
cc32b01
)
fix: call read_wallet_config only if there is a wallet_path value in options
author
ThomasV
<thomasv@gitorious>
Fri, 12 Oct 2012 18:42:45 +0000 (20:42 +0200)
committer
ThomasV
<thomasv@gitorious>
Fri, 12 Oct 2012 18:42:45 +0000 (20:42 +0200)
lib/simple_config.py
patch
|
blob
|
history
diff --git
a/lib/simple_config.py
b/lib/simple_config.py
index
bc00da7
..
f382969
100644
(file)
--- 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 = {}