Irit Katriel <iritkatr...@gmail.com> added the comment:
"raise exc" adds the current frame to the traceback of exc. If you want to clear the previous traceback before raising you can do that with raise exc.with_traceback(None) ---------- resolution: -> not a bug _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46717> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com