Don't get hung up on parsing errors.

This commit is contained in:
W1CDN 2023-04-23 21:13:27 -05:00
parent 2121119365
commit ab850a76a3

View File

@ -88,7 +88,10 @@ def main():
while True: while True:
conn = get_db_connection() conn = get_db_connection()
for frame in ki.read(min_frames=1): for frame in ki.read(min_frames=1):
a = aprslib.parse(str(frame)) try:
a = aprslib.parse(str(frame))
except:
a = dict()
a['station_call'] = config['Settings']['station_call'] a['station_call'] = config['Settings']['station_call']
a['station_lat'] = config['Settings']['station_lat'] a['station_lat'] = config['Settings']['station_lat']
a['station_lon'] = config['Settings']['station_lon'] a['station_lon'] = config['Settings']['station_lon']