git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5eeae69
)
System config should never be None
author
Chris Glass
<tribaal@gmail.com>
Wed, 25 Jun 2014 18:33:04 +0000 (20:33 +0200)
committer
Chris Glass
<tribaal@gmail.com>
Wed, 25 Jun 2014 18:33:04 +0000 (20:33 +0200)
lib/simple_config.py
patch
|
blob
|
history
diff --git
a/lib/simple_config.py
b/lib/simple_config.py
index
b4455bb
..
b70e5c9
100644
(file)
--- a/
lib/simple_config.py
+++ b/
lib/simple_config.py
@@
-137,6
+137,7
@@
class SimpleConfig(object):
def read_system_config():
"""Parse and return the system config settings in /etc/electrum.conf."""
+ result = {}
if os.path.exists(SYSTEM_CONFIG_PATH):
try:
import ConfigParser
@@
-152,7
+153,7
@@
def read_system_config():
result[k] = v
except ConfigParser.NoSectionError:
pass
- return result
+ return result
def read_user_config(path):
"""Parse and store the user config settings in electrum.conf into user_config[]."""