New submission from Ilya Kamenshchikov <ikamenshchi...@gmail.com>:

I have a high level wrapper where I am catching expection and present  it  in 
(more) user-friendly format with a message. 


try:
    raise ValueError
except Exception as e:
    print(f"Following happened: {e}")

>>> prints "Following happened: "

Can an exception print it's class when it has no message?

----------
components: Interpreter Core
messages: 374831
nosy: Ilya Kamenshchikov
priority: normal
severity: normal
status: open
title: Empty representation of AssertionError
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41478>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to