Skip to content

Instantly share code, notes, and snippets.

@fabware
fabware / gist:305572
Created February 16, 2010 14:57 — forked from apit/gist:284705
"""
Usage:
import debug
class BaseHandler(tornado.web.RequestHandler):
def get_error_html(self, status_code, **kwargs):
if self.application.settings['debug']:
return debug.display(self, kwargs['exception'])