Skip to content

Warn if except* exceptions are stringified #302

Description

@Zac-HD

except* FooError as e: produces an ExceptionGroup with an empty message, so str(e) == " (1 sub-exception)" (or whatever other number). It'd be nice to detect this (including in f-strings), and recommend using the repr instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions