cliconfig: Fix parsing the configuration file
This commit is contained in:
parent
cea22b17d7
commit
64b501cdc0
|
@ -39,9 +39,12 @@ def _split_list(commastr):
|
|||
|
||||
|
||||
def _get_param(name, default):
|
||||
if _istest or not name in cfg.sections():
|
||||
if _istest:
|
||||
return default
|
||||
try:
|
||||
return cfg.get("config", name)
|
||||
except ConfigParser.NoOptionError:
|
||||
return default
|
||||
return cfg.get("config", name)
|
||||
|
||||
|
||||
def _setup_gsettings_path(schemadir):
|
||||
|
|
Loading…
Reference in New Issue