From f23894d426362a5cccf9f272eec2afb59c729128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ove=20Stavn=C3=A5s?= Date: Fri, 8 Sep 2017 01:59:16 +0200 Subject: [PATCH] fix problem when no geolocation key is provided and invalid dict is cached #214 (#233) * fix problem when no geolocation key is provided #214 --- elodie/geolocation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elodie/geolocation.py b/elodie/geolocation.py index 91707e2..5d21739 100644 --- a/elodie/geolocation.py +++ b/elodie/geolocation.py @@ -147,7 +147,7 @@ def place_name(lat, lon): if('default' not in lookup_place_name): lookup_place_name['default'] = address[loc] - if(lookup_place_name is not {}): + if(lookup_place_name): db.add_location(lat, lon, lookup_place_name) # TODO: Maybe this should only be done on exit and not for every write. db.update_location_db()