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

@@ -6044,7 +6044,7 @@ static PyObject *pyrna_prop_collection_iter(BPy_PropertyRNA *self)
static PyObject *pyrna_prop_collection_iter_next(BPy_PropertyCollectionIterRNA *self)
{
if (self->iter.valid == false) {
PyErr_SetString(PyExc_StopIteration, "pyrna_prop_collection_iter stop");
PyErr_SetNone(PyExc_StopIteration);
return NULL;
}
else {