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

Fix TypeError when deleting all files from tile #10057 #10115

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

jacobtylerwalls
Copy link
Member

@jacobtylerwalls jacobtylerwalls commented Oct 10, 2023

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Description of Change

When attempting to delete all files from a saved tile, TypeError was raised. Now it's fixed.

A tile value of [] is falsey, so it was bypassing this check, meaning get_tile_data() returned an implicit None after logging "Tile has no authoritative or provisional data".

Issues Solved

Closes #10057
Refs #9704 (for initializing k/v pairs in tile data to None)

A tile value of `[]` is not truthy.
Copy link
Contributor

@chrabyrd chrabyrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@chrabyrd chrabyrd merged commit 2fcab2c into dev/7.5.x Oct 12, 2023
1 check passed
@chrabyrd chrabyrd deleted the 10057-tile-value-empty-array branch October 12, 2023 18:58
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.

Deleting all files from tile raises TypeError
2 participants