don't display the traceback in the HTTP response

This commit is contained in:
benoitc 2013-09-27 09:06:00 +02:00
parent 5ff75b194c
commit feb86d3fb2

View File

@ -190,10 +190,6 @@ class Worker(object):
resp.response_length = len(mesg)
self.log.access(resp, req, environ, request_time)
if self.debug:
tb = traceback.format_exc()
mesg += "<h2>Traceback:</h2>\n<pre>%s</pre>" % tb
try:
util.write_error(client, status_int, reason, mesg)
except: