Commit 6d87d667 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Fix check for error condition

parent b8ece8af
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment