mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-21 17:06:18 +00:00
fix: #673
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user