mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix check for error condition
This commit is contained in:
parent
d1badac99c
commit
b5e7ff4aeb
1 changed files with 1 additions and 1 deletions
|
@ -2107,7 +2107,7 @@ PyCurses_Pair_Content(PyObject *self, PyObject *args)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pair_content(pair, &f, &b)) {
|
if (pair_content(pair, &f, &b)==ERR) {
|
||||||
PyErr_SetString(PyCursesError,
|
PyErr_SetString(PyCursesError,
|
||||||
"Argument 1 was out of range. (1..COLOR_PAIRS-1)");
|
"Argument 1 was out of range. (1..COLOR_PAIRS-1)");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue