Skip to content

Wrap JSONPath compile time recursion errors in JSONPathRecursionError#135

Merged
jg-rp merged 1 commit into
mainfrom
fix-recursion-error
Jul 7, 2026
Merged

Wrap JSONPath compile time recursion errors in JSONPathRecursionError#135
jg-rp merged 1 commit into
mainfrom
fix-recursion-error

Conversation

@jg-rp

@jg-rp jg-rp commented Jul 7, 2026

Copy link
Copy Markdown
Owner

This PR changes JSONPathRecursionError to inherit from both JSONPathError and Python's RecursionError, and raises JSONPathRecursionError at query compile time if the query has been crafted to cause our recursive parser to reach Python's recursion limit.

@jg-rp jg-rp merged commit 4084691 into main Jul 7, 2026
28 checks passed
@jg-rp jg-rp deleted the fix-recursion-error branch July 7, 2026 09:52
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