From ea77d82017c2d23c5ccb3379bd0dd4cc151601e9 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Tue, 26 Mar 2019 12:17:00 +0100 Subject: [PATCH] [FIX] account_banking_pain_base: flake8 --- account_banking_pain_base/i18n/account_banking_pain_base.pot | 2 +- account_banking_pain_base/models/res_bank.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/account_banking_pain_base/i18n/account_banking_pain_base.pot b/account_banking_pain_base/i18n/account_banking_pain_base.pot index 001302c66..4751bfd31 100644 --- a/account_banking_pain_base/i18n/account_banking_pain_base.pot +++ b/account_banking_pain_base/i18n/account_banking_pain_base.pot @@ -774,7 +774,7 @@ msgid "The '%s' is empty or 0. It should have a non-null value." msgstr "" #. module: account_banking_pain_base -#: code:addons/account_banking_pain_base/models/res_bank.py:27 +#: code:addons/account_banking_pain_base/models/res_bank.py:29 #, python-format msgid "The following Bank Identifier Codes (BIC) do not respect the SEPA pattern:\n" "{bic_list}\n" diff --git a/account_banking_pain_base/models/res_bank.py b/account_banking_pain_base/models/res_bank.py index efdc95903..c0d58f4ca 100644 --- a/account_banking_pain_base/models/res_bank.py +++ b/account_banking_pain_base/models/res_bank.py @@ -22,7 +22,9 @@ class ResBank(models.Model): :raise: ValidationError if the BIC doesn't respect the regex of the SEPA pain schemas. """ - invalid_banks = self.filtered(lambda r: r.bic and not BIC_REGEX.match(r.bic)) + invalid_banks = self.filtered( + lambda r: r.bic and not BIC_REGEX.match(r.bic) + ) if invalid_banks: raise ValidationError(_( "The following Bank Identifier Codes (BIC) do not respect "