diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-11-17 08:09:57 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-11-17 08:09:57 +0400 |
commit | 85bbef0f4ea2e7cacf2f681367f34fb6037d1df1 (patch) | |
tree | 1534722e133923a7abc500bb389d822f51ad9c1d /source/blender/python/bmesh | |
parent | c9209de573ad680dbad6b560c05a90b02b780267 (diff) |
python api internals: no need to set the stop-iter exception string.
Diffstat (limited to 'source/blender/python/bmesh')
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_types.c | 3 | ||||
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_types_select.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_types.c b/source/blender/python/bmesh/bmesh_py_types.c index 448f02a3772..97d88c5d189 100644 --- a/source/blender/python/bmesh/bmesh_py_types.c +++ b/source/blender/python/bmesh/bmesh_py_types.c @@ -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 { diff --git a/source/blender/python/bmesh/bmesh_py_types_select.c b/source/blender/python/bmesh/bmesh_py_types_select.c index 5069670a665..1906fc8c90e 100644 --- a/source/blender/python/bmesh/bmesh_py_types_select.c +++ b/source/blender/python/bmesh/bmesh_py_types_select.c @@ -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 { |