handle empty grid locators
This commit is contained in:
parent
22b6088515
commit
bdd29c2fa6
|
@ -186,6 +186,10 @@ def qso_data_from_adif(adif_stream):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
grid = qso['GRIDSQUARE']
|
grid = qso['GRIDSQUARE']
|
||||||
|
|
||||||
|
if not grid:
|
||||||
|
continue # locator is empty
|
||||||
|
|
||||||
lat, lon = maidenhead.to_location(grid, center=True)
|
lat, lon = maidenhead.to_location(grid, center=True)
|
||||||
call = qso['CALL']
|
call = qso['CALL']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue