Skip to content

Improve raise from ValueError() error message #134036

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

Activity

  1. self-assigned this
    on May 15, 2025
  2. added a commit that references this issue on May 16, 2025
  3. added a commit that references this issue on Jun 6, 2025
  4. added a commit that references this issue on Jun 6, 2025
  5. added a commit that references this issue on Jun 6, 2025
  6. ZeroIntensity commented on Jun 11, 2025

    @ZeroIntensity
    Member

    Triage: everything done here?

  7. added a commit that references this issue on Jun 12, 2025
  8. added a commit that references this issue on Jun 30, 2025
  9. added a commit that references this issue on Jul 11, 2025
  10. added 3 commits that reference this issue on Jul 12, 2025
  11. added a commit that references this issue on Jul 13, 2025
  12. added 3 commits that reference this issue on Aug 4, 2025
  13. added 3 commits that reference this issue on Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions