VirtualMailManager/Config.py
branchv0.6.x
changeset 211 0b129678cfe1
parent 209 c705a9e38962
child 215 33f727efa7c4
--- a/VirtualMailManager/Config.py	Mon Feb 22 10:25:48 2010 +0000
+++ b/VirtualMailManager/Config.py	Mon Feb 22 10:44:13 2010 +0000
@@ -94,7 +94,9 @@
         tmp = self.get(section, option)
         if isinstance(tmp, bool):
             return tmp
-        return RawConfigParser.getboolean(self, section, option)
+        if not tmp.lower() in self._boolean_states:
+            raise ValueError, 'Not a boolean: %s' % tmp
+        return self._boolean_states[tmp.lower()]
 
     def _get_section_option(self, section_option):
         """splits ``section_option`` (section\ **.**\ option) in two parts