Thank you for the idea.
I'll look into it.

Although, I'd rather catch unhandled exceptions from the "main" app
and in one single place.


On 15 déc, 13:01, "W. Martin Borgert" <[email protected]> wrote:
> 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