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: catch ParsingError #779

Merged
merged 4 commits into from
Feb 3, 2025
Merged

fix: catch ParsingError #779

merged 4 commits into from
Feb 3, 2025

Conversation

CyanVoxel
Copy link
Member

This PR introduces better error handing for the search syntax system that prevents various errors from occurring.

fix: move path_strings var inside with block

This change fixes #776 by preventing the errors that were raised when the path: keyword was used with a space following the colon.

The other commits focus on providing error handling by catching ParsingErrors raised by the search syntax system. This prevents the errors causing #777 as well as #764, however it's not a full fix for the issues described in #764 and #765 is still required.


Fixes #776, Fixes #777

@CyanVoxel CyanVoxel added Type: Bug Something isn't working as intended Priority: Critical An issue that requires immediate attention Status: Review Needed A review of this is needed TagStudio: Search The TagStudio search engine labels Feb 2, 2025
@CyanVoxel CyanVoxel added this to the SQL Parity milestone Feb 2, 2025
@CyanVoxel CyanVoxel marked this pull request as ready for review February 2, 2025 23:58
@CyanVoxel CyanVoxel removed the Status: Review Needed A review of this is needed label Feb 3, 2025
@CyanVoxel CyanVoxel merged commit f48b363 into main Feb 3, 2025
10 checks passed
@CyanVoxel CyanVoxel deleted the fix-776 branch February 3, 2025 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Critical An issue that requires immediate attention TagStudio: Search The TagStudio search engine Type: Bug Something isn't working as intended
Projects
Status: ✅ Done
1 participant