Skip to content

fix: catch ParsingError#779

Merged
CyanVoxel merged 4 commits into
mainfrom
fix-776
Feb 3, 2025
Merged

fix: catch ParsingError#779
CyanVoxel merged 4 commits into
mainfrom
fix-776

Conversation

@CyanVoxel

Copy link
Copy Markdown
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
@CyanVoxel CyanVoxel deleted the fix-776 branch February 3, 2025 23:31
SysAdminDoc pushed a commit to SysAdminDoc/TagStudio that referenced this pull request May 19, 2026
* fix: move `path_strings` var inside `with` block

* refactor: move lambda to local function

* fix: catch `ParsingError` and return no results

* refactor: move `ParsingError` handling out to `QtDriver`

Reverts changes made to `test_search.py` and `enums.py`.
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

Development

Successfully merging this pull request may close these issues.

[Bug]: Syntax errors in queries causes disappearing thumbnails [Bug]: Unable to add tags or fields to files in search results

1 participant