Message374934
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>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2020-08-06 13:08:43 | Ilya Kamenshchikov | set | recipients:
+ Ilya Kamenshchikov, remi.lapeyre |
2020-08-06 13:08:43 | Ilya Kamenshchikov | link | issue41478 messages |
2020-08-06 13:08:42 | Ilya Kamenshchikov | create | |
|