Don't get hung up on parsing errors.
This commit is contained in:
parent
2121119365
commit
ab850a76a3
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue
Block a user