--- 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: