Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
iritkatriel commented Sep 9, 2023 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
bedevere-bot commented Sep 9, 2023
🤖 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. |
AlexWaygood commented Sep 9, 2023
The refleak buildbots appear to have been broken by #109177 |
Uh oh!
There was an error while loading. Please reload this page.
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 resolvedHide resolved
Uh oh!
There was an error while loading. Please reload this page.
bedevere-bot commented Sep 9, 2023
🤖 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. |
miss-islington commented Sep 11, 2023
Thanks @iritkatriel for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
miss-islington commented Sep 11, 2023
Sorry, @iritkatriel, I could not cleanly backport this to |
miss-islington commented Sep 11, 2023
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.