[IMP] ir_http: authentification method can redirect to an other page

This commit is contained in:
Jeremy Kersten 2015-01-19 13:43:57 +01:00
parent 1755c6fb6e
commit a0e775e3fa
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ class ir_http(osv.AbstractModel):
# let them bubble up
request.session.logout(keep_db=True)
getattr(self, "_auth_method_%s" % auth_method)()
except (openerp.exceptions.AccessDenied, openerp.http.SessionExpiredException):
except (openerp.exceptions.AccessDenied, openerp.http.SessionExpiredException, werkzeug.exceptions.HTTPException):
raise
except Exception:
_logger.exception("Exception during request Authentication.")