1
0
mirror of https://amiok.net/gitea/W1CDN/aprs_tool.git synced 2025-08-27 17:51:44 +00:00

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

This commit is contained in:
2023-04-27 19:19:12 -05:00
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()