Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

stupid typo

  • Loading branch information...
commit baf20a13037381911c0ac61ae768a646227bcb1a 1 parent e47aae0
Jeff Lindsay progrium authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 util.py
4 util.py
View
@@ -34,7 +34,7 @@ def flatten(l):
out.append(item)
return out
-def RedirectException(Exception):
+class RedirectException(Exception):
def __init__(self, uri, message):
self.uri = uri
super(RedirectException, self).__init__(message)
@@ -50,7 +50,7 @@ def handle_exception(self, exception, debug_mode):
lines = ''.join(traceback.format_exception(*sys.exc_info()))
self.response.clear()
self.response.out.write('<pre>%s</pre>' % (cgi.escape(lines, quote=True)))
-
+
# webapp framework monkey patch to support RedirectException
webapp.RequestHandler.handle_exception = RedirectException.handle_exception
Please sign in to comment.
Something went wrong with that request. Please try again.