From 6120c1dd31d2aba62fa8f8bd43d980654f65ea2d Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Tue, 5 Dec 2023 21:00:42 +0100 Subject: [PATCH] Fixed missing check for none value --- sbapp/sideband/sense.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbapp/sideband/sense.py b/sbapp/sideband/sense.py index 53b90bb..d2c3d33 100644 --- a/sbapp/sideband/sense.py +++ b/sbapp/sideband/sense.py @@ -814,7 +814,7 @@ class Location(Sensor): if slat != None and slon != None: s = relative_to.sensors["location"] d = s.data - if "latitude" in d and "longitude" in d and "altitude" in d: + if d != None and "latitude" in d and "longitude" in d and "altitude" in d: lat = d["latitude"]; lon = d["longitude"]; alt = d["altitude"] if lat != None and lon != None: if alt == None: alt = 0