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
Date 2020-08-04.16:47:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1596559644.4.0.529490005495.issue41478@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2020-08-04 16:47:24Ilya Kamenshchikovsetrecipients: + Ilya Kamenshchikov
2020-08-04 16:47:24Ilya Kamenshchikovsetmessageid: <1596559644.4.0.529490005495.issue41478@roundup.psfhosted.org>
2020-08-04 16:47:24Ilya Kamenshchikovlinkissue41478 messages
2020-08-04 16:47:24Ilya Kamenshchikovcreate