[FIX] ir.http: catch all authentification errors
authorChristophe Simonis <chs@openerp.com>
Wed, 4 Dec 2013 10:24:30 +0000 (11:24 +0100)
committerChristophe Simonis <chs@openerp.com>
Wed, 4 Dec 2013 10:24:30 +0000 (11:24 +0100)
bzr revid: chs@openerp.com-20131204102430-qxqk8qtze5n5rqe8

openerp/addons/base/ir/ir_http.py

index 02d3fee..646c34e 100644 (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