Quoting je <[email protected]>:
> Is there a way to "try...except" the whole app for unexpected errors,
> like I would do in a regular python script with:

I never tried exception handling using a decorator, but maybe it can work?

     @myexcpetionhandler
     def GET(self):
         err1()
         yield ...
         err2()

Just an idea to keep the code clean.

--

You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.


Reply via email to