From e92c861e1c03a70068d3aaf415cebf5a1d922200 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Sat, 21 Jan 2017 22:58:44 +0100 Subject: [PATCH] Skip invalid location on sidebar map --- plugins/Sidebar/SidebarPlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Sidebar/SidebarPlugin.py b/plugins/Sidebar/SidebarPlugin.py index 8ae68d2c..08ed66df 100644 --- a/plugins/Sidebar/SidebarPlugin.py +++ b/plugins/Sidebar/SidebarPlugin.py @@ -560,7 +560,7 @@ class UiWebsocketPlugin(object): globe_data += (lat, lon, ping) # Append myself loc = geodb.get(config.ip_external) - if loc: + if loc and loc.get("location"): lat, lon = (loc["location"]["latitude"], loc["location"]["longitude"]) globe_data += (lat, lon, -0.135)