cliconfig: Fix parsing the configuration file

This commit is contained in:
Cole Robinson 2013-10-08 14:42:59 -04:00
parent cea22b17d7
commit 64b501cdc0
1 changed files with 5 additions and 2 deletions

View File

@ -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):