From ab850a76a3dc00886bf2b2d885f41a2363f02a03 Mon Sep 17 00:00:00 2001 From: W1CDN Date: Sun, 23 Apr 2023 21:13:27 -0500 Subject: [PATCH] Don't get hung up on parsing errors. --- kiss_and_db.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kiss_and_db.py b/kiss_and_db.py index 2b6ec2f..a38dfd3 100644 --- a/kiss_and_db.py +++ b/kiss_and_db.py @@ -88,7 +88,10 @@ def main(): while True: conn = get_db_connection() 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_lat'] = config['Settings']['station_lat'] a['station_lon'] = config['Settings']['station_lon']