Uh oh!
There was an error while loading. Please reload this page.
gh-109179: Fix traceback display for SyntaxErrors with notes - #109197
Conversation
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>
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.