mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Fix flake8 and isort errors
Note, isort now has default behaviour of searching recursively so we no longer need the `-rc` flag
This commit is contained in:
@@ -1354,14 +1354,14 @@ class LetterAddressForm(StripWhitespaceForm):
|
||||
if not address.has_valid_last_line:
|
||||
if self.allow_international_letters:
|
||||
raise ValidationError(
|
||||
f'Last line of the address must be a UK postcode or another country'
|
||||
'Last line of the address must be a UK postcode or another country'
|
||||
)
|
||||
if address.international:
|
||||
raise ValidationError(
|
||||
f'You do not have permission to send letters to other countries'
|
||||
'You do not have permission to send letters to other countries'
|
||||
)
|
||||
raise ValidationError(
|
||||
f'Last line of the address must be a real UK postcode'
|
||||
'Last line of the address must be a real UK postcode'
|
||||
)
|
||||
|
||||
if address.has_invalid_characters:
|
||||
|
||||
Reference in New Issue
Block a user