Created
September 12, 2009 05:04
-
-
Save sebleier/185731 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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