Skip to main content

Timeline for answer to rethrowing python exception. Which to catch? by Karel Marik

Current License: CC BY-SA 4.0

Post Revisions

7 events
when toggle format what by license comment
Oct 2, 2024 at 7:49 history edited Karel Marik CC BY-SA 4.0
Option to add note to exception.
Sep 13, 2024 at 9:50 comment added Karel Marik @metanox I edited the answer to suppress "cause" exception and print just the final exception. However I am not sure if this is your desired "final exception in chain"
Sep 13, 2024 at 9:47 history edited Karel Marik CC BY-SA 4.0
added 688 characters in body
Aug 23, 2024 at 21:10 comment added Dan Mašek @matanox For some reason the link you say points to the docs actually links to this answer. What did you have in mind?
Feb 12, 2024 at 17:21 comment added matanox As documented in the docs, and it's probably not elegantly possible to make only the final exception of the chain be raised and shown even if one wanted to (happy to learn otherwise).
Oct 25, 2022 at 14:15 history edited Karel Marik CC BY-SA 4.0
deleted 270 characters in body
Oct 25, 2022 at 14:01 history answered Karel Marik CC BY-SA 4.0