]> granicus.if.org Git - python/commitdiff
protect this call, too
authorBenjamin Peterson <benjamin@python.org>
Mon, 2 Apr 2012 15:18:18 +0000 (11:18 -0400)
committerBenjamin Peterson <benjamin@python.org>
Mon, 2 Apr 2012 15:18:18 +0000 (11:18 -0400)
Modules/threadmodule.c

index 73ee382df36a0bb0e0823d36c93c35efed303edf..9462f430a7209820a136f019e683b0c55a45478f 100644 (file)
@@ -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);
         }
     }