Skip to content

Skip unmatched addresses when parsing batch geocoding responses#26

Closed
SAY-5 wants to merge 1 commit into
Geocodio:mainfrom
SAY-5:fix/batch-unmatched-indexerror
Closed

Skip unmatched addresses when parsing batch geocoding responses#26
SAY-5 wants to merge 1 commit into
Geocodio:mainfrom
SAY-5:fix/batch-unmatched-indexerror

Conversation

@SAY-5

@SAY-5 SAY-5 commented Jun 18, 2026

Copy link
Copy Markdown

Summary

Fixes #24 - batch geocoding raised IndexError when a query came back with no matches (e.g. an unparseable address). The API returns one entry per query and unmatched ones have an empty results list, but the parser indexed results[0] unconditionally. Entries with no results are now skipped so the rest of the batch still parses.

Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
@imliam

imliam commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Thanks for the contribution! Superseded by #28 which fixes the same problem in a different way.

@imliam imliam closed this Jul 14, 2026
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

Successfully merging this pull request may close these issues.

IndexError on batches with invalid addresses

2 participants