From f39d2dd680cb87fd500e265aba837a87da3fee60 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sat, 4 May 2024 07:05:55 +0000 Subject: [PATCH] nominatim hit extratags can be null --- matcher/nominatim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matcher/nominatim.py b/matcher/nominatim.py index 279b669..c15b8fc 100644 --- a/matcher/nominatim.py +++ b/matcher/nominatim.py @@ -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"]