fix problem when no geolocation key is provided and invalid dict is cached #214 (#233)

* fix problem when no geolocation key is provided #214
This commit is contained in:
Ove Stavnås 2017-09-08 01:59:16 +02:00 committed by Jaisen Mathai
parent c43570ffac
commit f23894d426
1 changed files with 1 additions and 1 deletions

View File

@ -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()