File: _imaging.c
Function: _getpixel
Error: returning (PyObject*)NULL without setting an exception
954 static PyObject* 
955 _getpixel(ImagingObject* self, PyObject* args)
956 {
957     PyObject* xy;
958     int x, y;
959 
960     if (PyTuple_GET_SIZE(args) != 1) {
when considering value == (Py_ssize_t)1 from _imaging.c:960
taking False path
961         PyErr_SetString(
962             PyExc_TypeError,
963             "argument 1 must be sequence of length 2"
964             );
965         return NULL;
966     }
967 
968     xy = PyTuple_GET_ITEM(args, 0);
969 
970     if (_getxy(xy, &x, &y))
when considering range: -0x80000000 <= value <= -1
taking True path
971         return NULL;
972 
973     if (self->access == NULL) {
974         Py_INCREF(Py_None);
975         return Py_None;
976     }
977 
978     return getpixel(self->image, self->access, x, y);
979 }
returning (PyObject*)NULL without setting an exception
found 1 similar trace(s) to this