diff --git a/auth_sms_auth_signup/controllers/auth_sms_auth_signup.py b/auth_sms_auth_signup/controllers/auth_sms_auth_signup.py index d63efe60b4..6158bcbbc5 100644 --- a/auth_sms_auth_signup/controllers/auth_sms_auth_signup.py +++ b/auth_sms_auth_signup/controllers/auth_sms_auth_signup.py @@ -32,7 +32,7 @@ def web_auth_reset_password(self, *args, **kw): user.sudo(user)._auth_sms_check_credentials() except Exception as e: del request.session["auth_sms.code"] - qcontext["error"] = e.message or e + qcontext["error"] = e.message if hasattr(e, "message") else str(e) if request.session.get("auth_sms.code"): return super(AuthSmsAuthSignup, self).web_auth_reset_password( *args, **kw