bpo-45709: Fix tracing when exception is handled. (GH-29638)

3 files changed