From 67db4e6aa0247b47d783af0a0ebc6bd4893f7bed Mon Sep 17 00:00:00 2001 From: Antoine Goutenoir Date: Thu, 8 Oct 2020 09:05:55 +0200 Subject: [PATCH] fix: backward-compatibility --- flaskr/controllers/main_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flaskr/controllers/main_controller.py b/flaskr/controllers/main_controller.py index 601892c..d1e2f7f 100644 --- a/flaskr/controllers/main_controller.py +++ b/flaskr/controllers/main_controller.py @@ -775,8 +775,8 @@ def consult_estimation(public_id, extension): city['city'].encode(OUT_ENCODING), city['country'].encode(OUT_ENCODING), city['address'].encode(OUT_ENCODING), - city['latitude'], - city['longitude'], + city.get('latitude', 0.0), + city.get('longitude', 0.0), round(city['footprint'], 3), round(city['distance'], 3), city['plane_trips'], -- libgit2 0.21.2