Skip to content

Commit

Permalink
[FIX] auth_sms_auth_signup: prevent error in exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
NL66278 committed Nov 13, 2024
1 parent c74f5e5 commit 366a4af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth_sms_auth_signup/controllers/auth_sms_auth_signup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 366a4af

Please sign in to comment.