Skip to content

Commit 4b09219

Browse files
committed
[FIX] auth_sms_auth_signup: prevent error in exception handling
1 parent 49cdd0b commit 4b09219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth_sms_auth_signup/controllers/auth_sms_auth_signup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def web_auth_reset_password(self, *args, **kw):
3232
user.sudo(user)._auth_sms_check_credentials()
3333
except Exception as e:
3434
del request.session["auth_sms.code"]
35-
qcontext["error"] = e.message or e
35+
qcontext["error"] = e.message if hasattr(e, "message") else str(e)
3636
if request.session.get("auth_sms.code"):
3737
return super(AuthSmsAuthSignup, self).web_auth_reset_password(
3838
*args, **kw

0 commit comments

Comments
 (0)