diff options
| author | Xavier Morel <xmo@odoo.com> | 2017-05-10 16:34:36 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2017-05-12 16:15:40 +0200 |
| commit | 07ab8b6cd2b44aeb91dadc35adf5f4b19f1399b2 (patch) | |
| tree | e11bc7b07e68ff4ee0a07c1a786abd2f3abe27a8 /addons/auth_signup/controllers | |
| parent | 3dd3790597e84186d922b798aa8bb4650513ce4b (diff) | |
[FIX] P3: Exception.message removed
Diffstat (limited to 'addons/auth_signup/controllers')
| -rw-r--r-- | addons/auth_signup/controllers/main.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/auth_signup/controllers/main.py b/addons/auth_signup/controllers/main.py index db636797d12..825a880b62c 100644 --- a/addons/auth_signup/controllers/main.py +++ b/addons/auth_signup/controllers/main.py @@ -38,7 +38,7 @@ class AuthSignupHome(Home): if request.env["res.users"].sudo().search([("login", "=", qcontext.get("login"))]): qcontext["error"] = _("Another user is already registered using this email address.") else: - _logger.error(e.message) + _logger.error("%s", e) qcontext['error'] = _("Could not create a new account.") return request.render('auth_signup.signup', qcontext) @@ -64,7 +64,7 @@ class AuthSignupHome(Home): qcontext['error'] = _("Could not reset your password") _logger.exception('error when resetting password') except Exception as e: - qcontext['error'] = e.message or e.name + qcontext['error'] = str(e) response = request.render('auth_signup.reset_password', qcontext) response.headers['X-Frame-Options'] = 'DENY' |
