handle empty grid locators
This commit is contained in:
parent
22b6088515
commit
bdd29c2fa6
1 changed files with 4 additions and 0 deletions
|
|
@ -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']
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue