From b5e7ff4aeb0eb17c27114523768ae6597e189c7c Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Wed, 15 Jun 2005 18:46:50 +0000 Subject: [PATCH] Fix check for error condition --- Modules/_cursesmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 2e14abb779..acff973f2a 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -2107,7 +2107,7 @@ PyCurses_Pair_Content(PyObject *self, PyObject *args) return NULL; } - if (!pair_content(pair, &f, &b)) { + if (pair_content(pair, &f, &b)==ERR) { PyErr_SetString(PyCursesError, "Argument 1 was out of range. (1..COLOR_PAIRS-1)"); return NULL; -- 2.40.0