VMM/cli/config: Except the VMMError from exec_ok in configure(). v0.6.x
authorPascal Volk <neverseen@users.sourceforge.net>
Sat, 07 Aug 2010 04:44:23 +0000
branchv0.6.x
changeset 349 d60ffbc0124b
parent 348 ca7575401549
child 350 b7a4d7828608
VMM/cli/config: Except the VMMError from exec_ok in configure().
VirtualMailManager/cli/config.py
--- a/VirtualMailManager/cli/config.py	Sat Aug 07 03:29:53 2010 +0000
+++ b/VirtualMailManager/cli/config.py	Sat Aug 07 04:44:23 2010 +0000
@@ -13,7 +13,7 @@
 
 from VirtualMailManager import ENCODING
 from VirtualMailManager.config import Config, ConfigValueError, LazyConfig
-from VirtualMailManager.errors import ConfigError
+from VirtualMailManager.errors import ConfigError, VMMError
 from VirtualMailManager.cli import w_err, w_std
 from VirtualMailManager.constants import CONF_ERROR, VMM_TOO_MANY_FAILURES
 
@@ -46,7 +46,7 @@
                             LazyConfig.set(self, '%s.%s' % (section, opt),
                                            newval)
                             break
-                        except (ValueError, ConfigValueError), err:
+                        except (ValueError, ConfigValueError, VMMError), err:
                             w_err(0, _(u'Warning: %s') % err)
                             failures += 1
                             if failures > 2: