Skip to content

Commit 6c5db45

Browse files
authored
Update Modules/_curses_panel.c
1 parent 743b537 commit 6c5db45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_curses_panel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ PyCursesPanel_Dealloc(PyObject *self)
447447
if (po->wo != NULL) {
448448
Py_DECREF(po->wo);
449449
if (remove_lop(po) < 0) {
450-
PyErr_Format(PyExc_RuntimeError, "__del__: no panel object to delete");
450+
PyErr_SetString(PyExc_RuntimeError, "__del__: no panel object to delete");
451451
PyErr_FormatUnraisable("Exception ignored in PyCursesPanel_Dealloc()");
452452
}
453453
}

0 commit comments

Comments
 (0)