Skip to content

Commit 03fa2af

Browse files
committed
Update fatal error message.
1 parent 02bc2d7 commit 03fa2af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/pystate.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1749,7 +1749,8 @@ decref_interpreter(PyInterpreterState *interp)
17491749
if (old == 1 && shutting_down_natives(interp)) {
17501750
_PyEvent_Notify(&finalizing->finished);
17511751
} else if (old <= 0) {
1752-
Py_FatalError("interpreter has negative reference count");
1752+
Py_FatalError("interpreter has negative reference count, likely due"
1753+
" to an extra PyInterpreterRef_Close()");
17531754
}
17541755
}
17551756

0 commit comments

Comments
 (0)