Skip invalid location on sidebar map
This commit is contained in:
parent
778e010bb3
commit
e92c861e1c
1 changed files with 1 additions and 1 deletions
|
@ -560,7 +560,7 @@ class UiWebsocketPlugin(object):
|
||||||
globe_data += (lat, lon, ping)
|
globe_data += (lat, lon, ping)
|
||||||
# Append myself
|
# Append myself
|
||||||
loc = geodb.get(config.ip_external)
|
loc = geodb.get(config.ip_external)
|
||||||
if loc:
|
if loc and loc.get("location"):
|
||||||
lat, lon = (loc["location"]["latitude"], loc["location"]["longitude"])
|
lat, lon = (loc["location"]["latitude"], loc["location"]["longitude"])
|
||||||
globe_data += (lat, lon, -0.135)
|
globe_data += (lat, lon, -0.135)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue