0001-base_adresse-handle-missing-postcode-in-street-info-.patch
passerelle/apps/base_adresse/models.py | ||
---|---|---|
462 | 462 |
for key in ('postcode', 'name', 'city'): |
463 | 463 |
if isinstance(street_info[key], list): |
464 | 464 |
street_info[key] = six.text_type(street_info[key][0]) |
465 |
if not street_info['postcode'].startswith(zipcodes): |
|
465 |
if not street_info['postcode'] or not street_info['postcode'].startswith(zipcodes):
|
|
466 | 466 |
continue |
467 | 467 |
citycode = ban_id.split('_', 1)[0] |
468 | 468 |
if isinstance(street_info['citycode'], list): |
469 |
- |