Commit 81fdf9d2 authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

UserTool: raise correct error (HTTPError)

parent b78e3703
......@@ -67,7 +67,7 @@ class UserTool(cherrypy.Tool):
logger.debug("Redirect %s" % url)
raise cherrypy.HTTPRedirect(url)
else:
raise AjaxException(401)
raise cherrypy.HTTPError(401)
cherrypy.serving.request.handler = handler
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment