protect this call, too
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 @@
                 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);
         }
     }