commit | 358e11d928ae4d3386c17eb0b48e7602029fec06 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Wed Jan 05 03:54:25 2011 +0000 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Wed Jan 05 03:54:25 2011 +0000 |
tree | 408d941953c92b6c291c21ff7cd6a4eda8a2b4d2 | |
parent | 29e762c94172a4e0b2855f188399f8f05487920e [diff] [blame] |
Issue #10756: atexit normalizes the exception before displaying it.
diff --git a/Modules/atexitmodule.c b/Modules/atexitmodule.c index 1382133..1ee7ead 100644 --- a/Modules/atexitmodule.c +++ b/Modules/atexitmodule.c
@@ -72,6 +72,7 @@ PyErr_Fetch(&exc_type, &exc_value, &exc_tb); if (!PyErr_ExceptionMatches(PyExc_SystemExit)) { PySys_WriteStderr("Error in atexit._run_exitfuncs:\n"); + PyErr_NormalizeException(&exc_type, &exc_value, &exc_tb); PyErr_Display(exc_type, exc_value, exc_tb); } }