Fix flake8 issue

This commit is contained in:
Raphael Michel
2025-11-14 18:13:48 +01:00
parent 7741e9f936
commit 57bc7563da

View File

@@ -3999,7 +3999,11 @@ def validate_event_settings(event, settings_dict):
)
if not pycountry.subdivisions.get(code=cc + '-' + settings_dict.get('invoice_address_from_state')):
raise ValidationError(
{'invoice_address_from_state': ['"{}" is not a known subdivision of the country "{}".'.format(settings_dict.get('invoice_address_from_state'), cc)]}
{'invoice_address_from_state': [
'"{}" is not a known subdivision of the country "{}".'.format(
settings_dict.get('invoice_address_from_state'), cc
)
]}
)
payment_term_last = settings_dict.get('payment_term_last')