Browse Source

Check that postal codes are strings in config

updated_weboob
Lucas Verney 5 years ago
parent
commit
571b42f5b1
  1. 1
      flatisfy/config.py

1
flatisfy/config.py

@ -163,6 +163,7 @@ def validate_config(config, check_with_data): @@ -163,6 +163,7 @@ def validate_config(config, check_with_data):
assert "postal_codes" in constraint
assert constraint["postal_codes"]
assert all(isinstance(x, str) for x in constraint["postal_codes"])
if check_with_data:
opendata_postal_codes = [
x.postal_code

Loading…
Cancel
Save