We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea1da77 commit 6f19384Copy full SHA for 6f19384
1 file changed
Python/pylifecycle.c
@@ -37,6 +37,7 @@
37
#include "pycore_weakref.h" // _PyWeakref_GET_REF()
38
39
#include "opcode.h"
40
+#include "pyerrors.h"
41
42
#include <locale.h> // setlocale()
43
#include <stdlib.h> // getenv()
@@ -3501,7 +3502,7 @@ wait_for_interp_references(PyInterpreterState *interp)
3501
3502
wait_ns = Py_MIN(wait_ns, wait_max);
3503
3504
if (PyErr_CheckSignals()) {
- PyErr_Print();
3505
+ PyErr_FormatUnraisable("Exception ignored while waiting on interpreter shutdown");
3506
/* The user CTRL+C'd us, bail out without waiting for a reference
3507
count of zero.
3508
0 commit comments