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

This commit is contained in:
Jeremy Kersten
2015-01-19 13:44:25 +01:00
parent 1755c6fb6e
commit a0e775e3fa
+1 -1
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.")