Message374831
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? |
|
Date |
User |
Action |
Args |
2020-08-04 16:47:24 | Ilya Kamenshchikov | set | recipients:
+ Ilya Kamenshchikov |
2020-08-04 16:47:24 | Ilya Kamenshchikov | set | messageid: <1596559644.4.0.529490005495.issue41478@roundup.psfhosted.org> |
2020-08-04 16:47:24 | Ilya Kamenshchikov | link | issue41478 messages |
2020-08-04 16:47:24 | Ilya Kamenshchikov | create | |
|