Skip to content

Conversation

@Vinoryz
Copy link

@Vinoryz Vinoryz commented Dec 9, 2025

This pull request improves the geodMapTiles function in geodMapTiles.py by making its return values more consistent and robust, especially in cases where data is missing. It also ensures that headers are always defined and that users receive clearer feedback when no data is available.

Return value consistency and error handling:

  • The function now consistently returns a tuple of (data_headers, data_list, file_found) even when an exception occurs due to missing columns, preventing downstream errors.
  • When there are no rows to process, the function logs a message indicating that no data is available in the Map Tile Cache, improving user feedback.

Data structure and output improvements:

  • The data_headers variable is now always defined at the start of data processing, ensuring headers are available for report generation and return values.
  • The function's return statement at the end now always returns data_headers, data_list, and file_found, aligning with its usage in other parts of the code.

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.

1 participant