Don't mess with frame if it can't be parsed.
This commit is contained in:
parent
f396fe87af
commit
cc89ab1a4c
|
@ -90,8 +90,6 @@ def main():
|
|||
for frame in ki.read(min_frames=1):
|
||||
try:
|
||||
a = aprslib.parse(str(frame))
|
||||
except:
|
||||
a = dict()
|
||||
a['station_call'] = config['Settings']['station_call']
|
||||
a['station_lat'] = config['Settings']['station_lat']
|
||||
a['station_lon'] = config['Settings']['station_lon']
|
||||
|
@ -119,6 +117,9 @@ def main():
|
|||
conn.commit()
|
||||
except:
|
||||
print("Error with SQLite!")
|
||||
except:
|
||||
print("Frame could not be parsed.")
|
||||
|
||||
|
||||
conn.close()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user