This commit is contained in:
Florian Bezannier
2024-01-15 22:30:55 +01:00
committed by Florian BEZANNIER
parent a580377129
commit 5e09221541
@@ -108,7 +108,7 @@ class Ecomix:
location = reverse_geocode.search([(latitude, longitude)])[0]
country_code = location["country_code"]
return country_code
except (UnicodeDecodeError, IndexError):
except (UnicodeDecodeError, IndexError, ValueError):
logger.error("Can't find country for %s %s", latitude, longitude)
# return None
country_code = country_code_default