Skip to content

Commit

Permalink
fix pre-commit error
Browse files Browse the repository at this point in the history
  • Loading branch information
kanda999 committed Dec 13, 2024
1 parent 25a6a1b commit 18ab1e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions website_recaptcha_v2/models/website.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,8 @@ def _get_error_message(self, errorcode=None):
}
return mapping.get(
errorcode,
_(
"Unknown reCAPTCHA error (error code: {errorcode}).".format(
errorcode=errorcode
)
),
_("Unknown reCAPTCHA error (error code: %(errorcode)s).")
% {"errorcode": errorcode},
)

def is_recaptcha_v2_valid(self, form_values):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ odoo.define("website_recaptcha_v2_form.form_editor", function (require) {
this.$target.find(".s_website_form_submit").before(legal);
}
},
_computeWidgetState: function (methodName, params) {
_computeWidgetState: function (methodName) {
switch (methodName) {
case "toggleRecaptchaV2":
return (
Expand Down

0 comments on commit 18ab1e7

Please sign in to comment.