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']