Return the correct status code on auth errors from Salt

This commit is contained in:
Seth House 2012-12-23 20:07:00 -07:00
parent c7a96e8986
commit fc99a10344

View File

@ -126,6 +126,8 @@ def hypermedia_handler(*args, **kwargs):
try:
cherrypy.response.processors = ct_out_map # handlers may modify this
ret = cherrypy.serving.request._hypermedia_inner_handler(*args, **kwargs)
except salt.exceptions.EauthAuthenticationError:
raise cherrypy.InternalRedirect('/login')
except cherrypy.CherryPyException:
raise
except Exception as exc: