cliconfig: fix another configuration file parsing problem

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2013-10-09 17:33:18 +02:00
parent 64b501cdc0
commit fad01e70fe

View File

@ -43,7 +43,7 @@ def _get_param(name, default):
return default
try:
return cfg.get("config", name)
except ConfigParser.NoOptionError:
except (ConfigParser.NoOptionError, ConfigParser.NoSectionError):
return default