Hi,
I'm a recent web.py convert. I'm trying to use
paste.evalexception.EvalException as a middleware to debug my app. It
provides an interactive prompt with the tracebacks which is quite
helpful.
However it doesn't work out of the box with web.py because of this
section in application.py:
except:
print >> web.debug, traceback.format_exc()
web.ctx.status = '500 Internal Server Error'
result = self.internalerror() #This line
throws away the exception
web.ctx.headers = [('Content-Type', 'text/html')]
When I replace this section with a raise statement EvalException can
do it's magic.
Is there a way to make this configurable, or to override internalerror
so it raises an exception?
I'm using the latest trunk from github.
regards
--
/A
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---