mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-24 15:26:36 -06:00
cliconfig: fix another configuration file parsing problem
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
64b501cdc0
commit
fad01e70fe
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user