Skip to content

Avoid accumulating tracebacks on ValidationAbortedError - #288

Open
Fire162 wants to merge 1 commit into
graphql-python:mainfrom
Fire162:fix-validation-aborted-error-traceback
Open

Fire162 wants to merge 1 commit into
graphql-python:mainfrom
Fire162:fix-validation-aborted-error-traceback

Conversation

@Fire162

@Fire162 Fire162 commented Oct 24, 2026

Copy link
Copy Markdown

Fixes #287.

Instantiate ValidationAbortedError on demand and clear its traceback when caught so aborted validations do not keep frames alive on the error. Keep validation_aborted_error defined at module scope for backwards compatibility.

@Fire162
Fire162 requested a review from Cito as a code owner October 24, 2026 02:22
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.

Memory leak: the shared validation_aborted_error keeps every traceback it is raised through

1 participant