VirtualMailManager/config.py
branchv0.6.x
changeset 342 b0c971f943dc
parent 326 8f8d9c4c8332
child 348 ca7575401549
--- a/VirtualMailManager/config.py	Thu Aug 05 23:26:23 2010 +0000
+++ b/VirtualMailManager/config.py	Fri Aug 06 02:15:16 2010 +0000
@@ -122,7 +122,7 @@
         """
         sect_opt = section_option.lower().split('.')
         # TODO: cache it
-        if len(sect_opt) != 2:  # do we need a regexp to check the format?
+        if len(sect_opt) != 2 or not sect_opt[0] or not sect_opt[1]:
             raise BadOptionError(_(u"Bad format: '%s' - expected: "
                                    u"section.option") %
                                  get_unicode(section_option))