VirtualMailManager/cli/config.py
branchv0.6.x
changeset 349 d60ffbc0124b
parent 344 0d2430dc6ef8
child 366 d6573da35b5f
--- 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: