>
> Is there a reason my attempts to use sys.excepthook failed? This was
> my test code, which triggered the normal web2py exception handling,
> which pointed to the "raise" line:
>
> --
> import sys
> def handler(t, v, tb):
> redirect("http://example.com")
> sys.excepthook = handler
> raise Exception("should trigger a redirect")
>Perhaps because requests are executed in threads (I believe sys.excepthook doesn't work in threads). Anthony

