Skip to content

Commit

Permalink
style: format.
Browse files Browse the repository at this point in the history
  • Loading branch information
sfermigier committed Oct 28, 2017
1 parent 0778198 commit 42df8f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions abilian/web/forms/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,10 @@ def _validate_siret(form, field, siret=""):

if not all(('0' <= c <= '9') for c in siret):
if not siret[-3:] in SIRET_CODES:
msg = _('SIRET looks like special SIRET but geographical '
'code seems invalid (%s)', code=siret[-3:])
msg = _(
'SIRET looks like special SIRET but geographical '
'code seems invalid (%s)', code=siret[-3:],
)
raise validators.ValidationError(msg)

elif not luhn(siret):
Expand Down

0 comments on commit 42df8f7

Please sign in to comment.