Traceback formatting issue: SyntaxError
and ExceptionGroup
#111334
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Uh oh!
There was an error while loading. Please reload this page.
Bug report
When raising
SyntaxError
withExceptionGroup
the traceback formatting seems to be broken:Note that
bad syntax
is not properly prefixed by|
and not indented properly.Compare it with:
I expect it to be:
This causes some side-effects on my work in #104150
So, I've prepared a PR to fix it. Polishing it and send today / tomorrow.
CC @iritkatriel
The text was updated successfully, but these errors were encountered: