[FIX] ir.http: catch all authentification errors

bzr revid: chs@openerp.com-20131204102430-qxqk8qtze5n5rqe8
This commit is contained in:
Christophe Simonis
2013-12-04 11:24:30 +01:00
parent 447255e021
commit 51e05e068b
+1 -2
View File
@@ -82,9 +82,8 @@ class ir_http(osv.AbstractModel):
# what if error in security.check()
# -> res_users.check()
# -> res_users.check_credentials()
except http.SessionExpiredException:
except Exception:
request.session.logout()
raise http.SessionExpiredException("Session expired for request %s" % request.httprequest)
getattr(self, "_auth_method_%s" % auth_method)()
return auth_method