Aaron Held wrote:

A friendlier error message would be nice, but WW should not load if the Application.config is wrong.

Yes, I see that other kinds of exceptions stop the load. In URLParser.py I see:


172        try:
173            importAsName = name
174            localDir, packageName = os.path.split(dir)
175            if sys.modules.has_key(importAsName):
176                mod = sys.modules[importAsName]
177            else:
178                res = imp.find_module(packageName, [localDir])
179                mod = imp.load_module(name, *res)
180        except ImportError, e:
181            print 'Error loading context: %s: %s: dir=%s' \
182                  % (name, e, dir)
183            return

It's just a minor tweak (add a check for None before 179) to get the problem fixed. Thing is though, what is a useful value to pass in for e during the exception?

...Edmund.




------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ Webware-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to