Skip to content

Improve raise from ValueError() error message #134036

Closed
@sobolevn

Description

@sobolevn

Feature or enhancement

#133999 gave me an idea. Right now it is:

Image

I suggest making it something similar to:

>>> raise from ValueError
  File "<python-input-1>", line 1
    raise from ValueError
          ^^^^
SyntaxError: invalid syntax, maybe you forgot an exception after `raise` keyword?

Wording is not the best at the moment, but we will figure it out :)

Linked PRs

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions