* fix problem when no geolocation key is provided #214
This commit is contained in:
parent
c43570ffac
commit
f23894d426
|
@ -147,7 +147,7 @@ def place_name(lat, lon):
|
||||||
if('default' not in lookup_place_name):
|
if('default' not in lookup_place_name):
|
||||||
lookup_place_name['default'] = address[loc]
|
lookup_place_name['default'] = address[loc]
|
||||||
|
|
||||||
if(lookup_place_name is not {}):
|
if(lookup_place_name):
|
||||||
db.add_location(lat, lon, 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.
|
# TODO: Maybe this should only be done on exit and not for every write.
|
||||||
db.update_location_db()
|
db.update_location_db()
|
||||||
|
|
Loading…
Reference in New Issue