-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-109179: Fix traceback display for SyntaxErrors with notes #109197
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
Conversation
🤖 New build scheduled with the buildbot fleet by @iritkatriel for commit 8311931 🤖 If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again. |
The refleak buildbots appear to have been broken by #109177 |
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Misc/NEWS.d/next/Core and Builtins/2023-09-09-21-17-18.gh-issue-109179.ZR8qs2.rst
Outdated
Show resolved
Hide resolved
🤖 New build scheduled with the buildbot fleet by @AlexWaygood for commit c00b658 🤖 If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again. |
Thanks @iritkatriel for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, @iritkatriel, I could not cleanly backport this to |
Sorry, @iritkatriel, I could not cleanly backport this to |
GH-109280 is a backport of this pull request to the 3.12 branch. |
…ython#109197) (cherry picked from commit ecd21a6)
…ython#109197) (cherry picked from commit ecd21a6)
…ython#109197) (cherry picked from commit ecd21a6)
GH-109283 is a backport of this pull request to the 3.11 branch. |
Since the syntax errors get replaced by the message in print_exception_file_and_line, the notes get lost.
This fixes the bug by extracting the notes before the call to print_exception_file_and_line.
Fixes #109179.