[fix] don't write formatted addresses in the ways-only data set unless the formatter returns non-None value

This commit is contained in:
Al
2017-03-05 03:50:00 -05:00
parent b76b7b8527
commit 5d73aa1295

View File

@@ -1682,6 +1682,8 @@ class OSMAddressFormatter(object):
formatted = self.formatter.format_address(address_components, country, language=lang,
tag_components=tag_components, minimal_only=False)
if not formatted or not formatted.strip():
continue
writer.writerow((lang, country, tsv_string(formatted)))
if i % 1000 == 0 and i > 0: