[IMP] test_lint, *: add caughtErrors option to no-unused-vars
All named arguments on the catch block must be used. If for some motive the named argument on the catch block is not used, its name must begin with '_'. closes odoo/odoo#85569 Related: odoo/enterprise#24867 Related: odoo/design-themes#552 Signed-off-by: Géry Debongnie <ged@odoo.com>
This commit is contained in:
@@ -47,7 +47,7 @@ const ReCaptcha = Class.extend({
|
||||
return {
|
||||
token: await window.grecaptcha.execute(this._publicKey, {action: action})
|
||||
};
|
||||
} catch (e) {
|
||||
} catch (_e) {
|
||||
return {
|
||||
error: _t("The recaptcha site key is invalid."),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user