handle empty grid locators

This commit is contained in:
Thomas Kolb 2023-11-12 22:19:51 +01:00
parent 22b6088515
commit bdd29c2fa6

View file

@ -186,6 +186,10 @@ def qso_data_from_adif(adif_stream):
continue
grid = qso['GRIDSQUARE']
if not grid:
continue # locator is empty
lat, lon = maidenhead.to_location(grid, center=True)
call = qso['CALL']