News for hackers. Stuff that matters.
Re:Handling exceptions in Python like a pro by Doxin on Thursday May 20, 2021 @03:20AM (#27218340)
Using "raise foo from bar" changes the message between the exceptions from "During handling of the above exception, another exception occurred:" to "The above exception was the direct cause of the following exception:"

So yes, these days the whole "raise from" construct is nearly pointless. Used to be that exception chaining wasn't automatic though.

There are no comments on this comment yet.