mirror of
https://github.com/markqvist/Sideband.git
synced 2025-07-26 16:25:28 -04:00
Fixed missing check for none value
This commit is contained in:
parent
c39b7ac148
commit
6120c1dd31
1 changed files with 1 additions and 1 deletions
|
@ -814,7 +814,7 @@ class Location(Sensor):
|
||||||
if slat != None and slon != None:
|
if slat != None and slon != None:
|
||||||
s = relative_to.sensors["location"]
|
s = relative_to.sensors["location"]
|
||||||
d = s.data
|
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"]
|
lat = d["latitude"]; lon = d["longitude"]; alt = d["altitude"]
|
||||||
if lat != None and lon != None:
|
if lat != None and lon != None:
|
||||||
if alt == None: alt = 0
|
if alt == None: alt = 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue