summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-04-02 15:18:18 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-04-02 15:18:18 (GMT)
commitf235989e0c56e7dee3cefeade0bc655bd58ad776 (patch)
treebeccd34d61ce393b7a1c3402ecbdf0db80451965 /Modules
parentf73813a8bbb55ac725720f4d3839b51f992f1f3f (diff)
downloadcpython-f235989e0c56e7dee3cefeade0bc655bd58ad776.zip
cpython-f235989e0c56e7dee3cefeade0bc655bd58ad776.tar.gz
cpython-f235989e0c56e7dee3cefeade0bc655bd58ad776.tar.bz2
protect this call, too
Diffstat (limited to 'Modules')
-rw-r--r--Modules/threadmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c
index 73ee382..9462f43 100644
--- a/Modules/threadmodule.c
+++ b/Modules/threadmodule.c
@@ -627,8 +627,8 @@ t_bootstrap(void *boot_raw)
PyFile_WriteObject(boot->func, file, 0);
else
PyObject_Print(boot->func, stderr, 0);
- PyErr_Restore(exc, value, tb);
PySys_WriteStderr("\n");
+ PyErr_Restore(exc, value, tb);
PyErr_PrintEx(0);
}
}