From a70e13365dbf33092dec867da25ce873e401e90c Mon Sep 17 00:00:00 2001 From: "Laurent Mignon (aka lmi)" Date: Mon, 4 Aug 2014 12:20:26 +0200 Subject: [PATCH] [FIX] properlyt return the Unauthorized() response to avoid warning in the log file --- auth_from_http_remote_user/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth_from_http_remote_user/controllers/main.py b/auth_from_http_remote_user/controllers/main.py index c388e3182..687dd41f4 100644 --- a/auth_from_http_remote_user/controllers/main.py +++ b/auth_from_http_remote_user/controllers/main.py @@ -45,7 +45,7 @@ class Home(main.Home): try: self._bind_http_remote_user(http.request.session.db) except http.AuthenticationError: - return werkzeug.exceptions.Unauthorized() + return werkzeug.exceptions.Unauthorized().get_response() return super(Home, self).web_client(s_action, **kw) def _get_user_id_from_attributes(self, res_users, cr):