Skip to content

Commit a21b820

Browse files
committed
correctly use PyErr_FormatUnraisable
1 parent 78976e8 commit a21b820

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/_cursesmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,7 @@ PyCursesWindow_dealloc(PyObject *self)
933933
PyCursesWindowObject *wo = (PyCursesWindowObject *)self;
934934
if (wo->win != stdscr && wo->win != NULL) {
935935
if (delwin(wo->win) == ERR) {
936+
curses_window_set_error(wo, "delwin", "__del__");
936937
PyErr_FormatUnraisable("Exception ignored in delwin()");
937938
}
938939
}

0 commit comments

Comments
 (0)