David Casti wrote: > Hi, > > I have a PSP file with a snip of code like this in it -- > > try: > contact_id = c.commit_new() > except ValueError: > res.write( "<h1> Error captured </h1>") > > -- The problem is that the exception is not captured by that > try...except > block. Instead, the exception is captured by Webkit itself, which > dutifully generates an error page, shows me the traceback, > and prints the > ValueError. > > Is it possible to catch exceptions with PSPs? If not, how > about servlets?
Sure, I catch exceptions in PSP's and servlets without any problems. I have no idea why your exception isn't being caught. Can you write a self-contained example that I could try out here? - Geoff _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
