Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map_qsos.py fails when there are blank lines at the end of qso_update.csv #62

Closed
hcarter333 opened this issue Oct 2, 2023 · 2 comments

Comments

@hcarter333
Copy link
Owner

The following error is created:

Working on N7WPO
Working on W4IDX
Working on WM6T
Working on

Traceback (most recent call last):
  File "C:\Users\m3n7es\source\rm-rbn-history\map_qso.py", line 38, in <module>
    map_qsos()
  File "C:\Users\m3n7es\source\rm-rbn-history\map_qso.py", line 10, in map_qsos
    result = dump_rm_rbn_history()
             ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\m3n7es\source\rm-rbn-history\auto_geo_update.py", line 151, in dump_rm_rbn_history
    callsign_loc = get_call_lat_lng(fields[0])
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\m3n7es\source\rm-rbn-history\auto_geo_update.py", line 103, in get_call_lat_lng
    lat=y["results"][0]["geometry"]["location"]["lat"]
        ~~~~~~~~~~~~^^^
IndexError: list index out of range
@hcarter333
Copy link
Owner Author

This is now fixed. Code was added to ignore blank lines.

@hcarter333
Copy link
Owner Author

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant