forked from edward/owl-map
Avoid crash when searching for USA
This commit is contained in:
parent
83a06d9ed7
commit
14abffe79c
|
@ -88,7 +88,7 @@ def get_hit_name(hit):
|
|||
if country_code:
|
||||
country_code == country_code.lower()
|
||||
|
||||
if country_code == "us":
|
||||
if country_code == "us" and "state" in address:
|
||||
state = address["state"]
|
||||
return f"{n1}, {state}, USA"
|
||||
|
||||
|
|
Loading…
Reference in a new issue