Skip to content

Commit 0d01ade

Browse files
committed
fix compilation
1 parent 9f71ec7 commit 0d01ade

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Modules/_cursesmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,8 @@ _PyCursesStatefulCheckFunction(PyObject *module,
390390
#define curses_assert_success(CODE, CURSES_FUNCNAME, PYTHON_FUNCNAME) \
391391
do { \
392392
if (CODE != OK) { \
393-
PyErr_Format("%s (called by %s()) returned %d instead of %d", \
393+
PyErr_Format(PyExc_SystemError, \
394+
"%s (called by %s()) returned %d instead of %d", \
394395
CURSES_FUNCNAME, PYTHON_FUNCNAME, CODE, OK); \
395396
return NULL; \
396397
} \

0 commit comments

Comments
 (0)