From ed597fa00a34b885ee0b3e9153ef917d9b0580aa Mon Sep 17 00:00:00 2001 From: Nicolas JEUDY Date: Fri, 2 Oct 2020 04:18:49 +0000 Subject: [PATCH] [FIX] AttributeError: 'OAuthException' object has no attribute 'message' -> galicea openid --- galicea_openid_connect/controllers/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/galicea_openid_connect/controllers/main.py b/galicea_openid_connect/controllers/main.py index e2d779c..423cac6 100644 --- a/galicea_openid_connect/controllers/main.py +++ b/galicea_openid_connect/controllers/main.py @@ -188,7 +188,7 @@ class Main(http.Controller): ) except OAuthException as e: response_params['error'] = e.type - response_params['error_description'] = e.message + response_params['error_description'] = e return self.__redirect(redirect_uri, response_params, response_mode or 'query') if not response_mode: @@ -281,7 +281,7 @@ class Main(http.Controller): OAuthException.UNSUPPORTED_GRANT_TYPE, ) except OAuthException as e: - body = json.dumps({'error': e.type, 'error_description': e.message}) + body = json.dumps({'error': e.type, 'error_description': e}) return werkzeug.Response(response=body, status=400, headers=cors_headers) def __handle_grant_type_authorization_code(self, req, **query):