This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Ilya Kamenshchikov
Recipients Ilya Kamenshchikov, remi.lapeyre
Date 2020-08-06.13:08:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAAp-Dq+RnWkYEZ6O4N_-SoCLa+Y4tT8=gwYZ8XY2douNFfkM-w@mail.gmail.com>
In-reply-to <1596560344.26.0.719911748019.issue41478@roundup.psfhosted.org>
Content
That's a solution, except you must know ahead of time this issue exists.

Best Regards,
--
Ilya Kamen

On Tue, Aug 4, 2020 at 6:59 PM Rémi Lapeyre <report@bugs.python.org> wrote:

>
> Rémi Lapeyre <remi.lapeyre@henki.fr> added the comment:
>
> Hi, can you not use its repr:
>
>
> >>> try: raise ValueError
> ... except Exception as e: print(f"Following happened: {e!r}")
> ...
> Following happened: ValueError()
>
> ?
>
> ----------
> nosy: +remi.lapeyre
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue41478>
> _______________________________________
>
History
Date User Action Args
2020-08-06 13:08:43Ilya Kamenshchikovsetrecipients: + Ilya Kamenshchikov, remi.lapeyre
2020-08-06 13:08:43Ilya Kamenshchikovlinkissue41478 messages
2020-08-06 13:08:42Ilya Kamenshchikovcreate