I suggest the following little modification to MiscUtils/Configurable.py 
(araound line 107):

before:
            try:
                config = eval(contents, {})
            except:
                           raise ConfigurationError,\
                                 'Invalid configuration file, %s' \
                                 % self.configFilename()

after:
            try:
                config = eval(contents, {})
            except Exception,e:
                           raise ConfigurationError,\
                                 'Invalid configuration file %s : %s' \
                                 % (self.configFilename(),str(e))

Because a message stating that there is a problem in some file is more 
interesting if it contains also a description of the problem.

Luc





-------------------------------------------------------
In remembrance
www.osdn.com/911/
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to