Don't mess with frame if it can't be parsed.

This commit is contained in:
W1CDN 2023-04-27 19:19:12 -05:00
parent f396fe87af
commit cc89ab1a4c

View File

@ -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()