diff options
| author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-15 18:57:44 +0200 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-15 18:57:44 +0200 |
| commit | d0e11ec5b07c7c49061a2e4a73a0c231d9b46ad7 (patch) | |
| tree | 3b579a69db5721b11b89d9c18aa0ab14272f520e /Modules | |
| parent | 2ec6b176bd0fc41c6d00f244a4d8d6bdefa2c620 (diff) | |
| download | cpython-git-d0e11ec5b07c7c49061a2e4a73a0c231d9b46ad7.tar.gz | |
Issue #10756: atexit normalizes the exception before displaying it. Patch by
Andreas Stührk.
Backport a fix already applied to Python 3.2+ (4a82be47a948 + 5060a92a8597).
Diffstat (limited to 'Modules')
| -rw-r--r-- | Modules/atexitmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/atexitmodule.c b/Modules/atexitmodule.c index 1382133e0a..1ee7ead05f 100644 --- a/Modules/atexitmodule.c +++ b/Modules/atexitmodule.c @@ -72,6 +72,7 @@ atexit_callfuncs(void) 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); } } |
