python api internals: no need to set the stop-iter exception string.
This commit is contained in:
@@ -2879,8 +2879,7 @@ static PyObject *bpy_bmiter_next(BPy_BMIter *self)
|
||||
{
|
||||
BMHeader *ele = BM_iter_step(&self->iter);
|
||||
if (ele == NULL) {
|
||||
PyErr_SetString(PyExc_StopIteration,
|
||||
"bpy_bmiter_next stop");
|
||||
PyErr_SetNone(PyExc_StopIteration);
|
||||
return NULL;
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -341,8 +341,7 @@ static PyObject *bpy_bmeditseliter_next(BPy_BMEditSelIter *self)
|
||||
{
|
||||
BMEditSelection *ese = self->ese;
|
||||
if (ese == NULL) {
|
||||
PyErr_SetString(PyExc_StopIteration,
|
||||
"bpy_bmiter_next stop");
|
||||
PyErr_SetNone(PyExc_StopIteration);
|
||||
return NULL;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user