System config should never be None
This commit is contained in:
parent
5eeae69425
commit
221fa5848f
|
@ -137,6 +137,7 @@ class SimpleConfig(object):
|
||||||
|
|
||||||
def read_system_config():
|
def read_system_config():
|
||||||
"""Parse and return the system config settings in /etc/electrum.conf."""
|
"""Parse and return the system config settings in /etc/electrum.conf."""
|
||||||
|
result = {}
|
||||||
if os.path.exists(SYSTEM_CONFIG_PATH):
|
if os.path.exists(SYSTEM_CONFIG_PATH):
|
||||||
try:
|
try:
|
||||||
import ConfigParser
|
import ConfigParser
|
||||||
|
@ -152,7 +153,7 @@ def read_system_config():
|
||||||
result[k] = v
|
result[k] = v
|
||||||
except ConfigParser.NoSectionError:
|
except ConfigParser.NoSectionError:
|
||||||
pass
|
pass
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def read_user_config(path):
|
def read_user_config(path):
|
||||||
"""Parse and store the user config settings in electrum.conf into user_config[]."""
|
"""Parse and store the user config settings in electrum.conf into user_config[]."""
|
||||||
|
|
Loading…
Reference in New Issue