[FIX] account_banking_pain_base: flake8

This commit is contained in:
Pedro M. Baeza
2019-03-26 12:17:00 +01:00
committed by Valentin Vinagre Urteaga
parent 6666528282
commit 829ae8f37b

View File

@@ -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 "