Skip to content

fix: avoid KeyError in add_folders_to_tree() (fix #346) #347

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
Aug 12, 2024
Merged

Conversation

CyanVoxel
Copy link
Member

Swaps the use of branch["tag"] for branch.get("tag") inside of add_folders_to_tree() to avoid a KeyError when there is no Tag.

@CyanVoxel CyanVoxel added Type: Bug Something isn't working as intended Priority: High An important issue requiring attention TagStudio: Tags Relating to the TagStudio tag system Status: Review Needed A review of this is needed labels Aug 9, 2024
@CyanVoxel CyanVoxel linked an issue Aug 9, 2024 that may be closed by this pull request
3 tasks
@CyanVoxel CyanVoxel removed the Status: Review Needed A review of this is needed label Aug 12, 2024
@CyanVoxel CyanVoxel merged commit ec960f2 into main Aug 12, 2024
8 checks passed
@CyanVoxel CyanVoxel deleted the fix-346 branch August 23, 2024 19:06
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Priority: High An important issue requiring attention TagStudio: Tags Relating to the TagStudio tag system Type: Bug Something isn't working as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Create Tags From Folders not working
1 participant