You can control what the traceback of exceptions you are emitting:
"raise e.with_traceback(None)" should clear everything before the current frame.
Or you can get clever and construct a traceback with only the frames you want.
On Saturday, May 29, 2021, 08:27:18 PM GMT+1, André Roberge <andre.roberge@gmail.com> wrote:
What I am interested in is having a project-agnostic standardised Python way to specify what to show to an end-user when an exception is raised.