"SyntaxError: cannot have both 'except' and 'except*' on the same 'try'" traceback point to a confusing place #99153
Labels
3.11
only security fixes
3.12
only security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Bug report
Given the following codes:
Traceback:
and:
Traceback:
The traceback points to a confusing place (the last line of the file or the beginning of the next structure statement) rather than the location of the syntax error.
The traceback I expect is:
Your environment
The text was updated successfully, but these errors were encountered: