Permalink
Browse files

stupid typo

  • Loading branch information...
1 parent e47aae0 commit baf20a13037381911c0ac61ae768a646227bcb1a @progrium progrium committed Jan 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 util.py
View
4 util.py
@@ -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

0 comments on commit baf20a1

Please sign in to comment.