nominatim hit extratags can be null

This commit is contained in:
Edward Betts 2024-05-04 07:05:55 +00:00
parent b8ed31e201
commit f39d2dd680
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ def get_hit_name(hit: Hit) -> str:
def get_hit_label(hit: Hit) -> str:
"""Parse hit and generate label."""
tags = hit["extratags"]
tags = hit["extratags"] or {}
designation = tags.get("designation")
category = hit["category"]
hit_type = hit["type"]