[virt-tools-list] [PATCH] cliconfig: fix another configuration file parsing problem
Giuseppe Scrivano
gscrivan at redhat.com
Wed Oct 9 15:36:48 UTC 2013
Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
virtcli/cliconfig.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/virtcli/cliconfig.py b/virtcli/cliconfig.py
index c4d2fc5..3011543 100644
--- a/virtcli/cliconfig.py
+++ b/virtcli/cliconfig.py
@@ -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
--
1.8.3.1
More information about the virt-tools-list
mailing list