Skip to content

Instantly share code, notes, and snippets.

@sebleier
Created September 12, 2009 05:04
Show Gist options
  • Save sebleier/185731 to your computer and use it in GitHub Desktop.
Save sebleier/185731 to your computer and use it in GitHub Desktop.
class WSGIHandlerWrapper(WSGIHandler):
def __init__(self):
settings.configure(DEBUG_PROPAGATE_EXCEPTIONS=True)
super(WSGIHandlerWrapper, self).__init__()
def handle_uncaught_exception(self, request, resolver, exc_info):
try:
super(WSGIHandlerWrapper, self).handle_uncaught_exception(request, resolver, exc_info)
except Exception, e:
# do something
application = WSGIHandlerWrapper()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment