python api internals: no need to set the stop-iter exception string.

This commit is contained in:
2013-11-17 15:09:57 +11:00
parent c9209de573
commit 85bbef0f4e
5 changed files with 5 additions and 7 deletions

View File

@@ -1397,7 +1397,7 @@ static PyObject *BPy_Group_Iter_Next(BPy_IDGroup_Iter *self)
}
}
else {
PyErr_SetString(PyExc_StopIteration, "iterator at end");
PyErr_SetNone(PyExc_StopIteration);
return NULL;
}
}