[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:
Jorge Pinna Puissant
2022-03-02 13:05:42 +00:00
parent bc20eb4790
commit cac3ba62e5
71 changed files with 125 additions and 125 deletions
@@ -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."),
};