diff options
author | Campbell Barton <campbell@blender.org> | 2022-05-03 10:52:11 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-05-03 11:22:54 +0300 |
commit | a821a2db3d5e4c5a302de677a127a662942c46ae (patch) | |
tree | 16c97579b5dfd54d75291c29cc7c544da2460bdf /source/blender/python/intern | |
parent | 1fc95d829f92b81737095a146313131633286b8e (diff) |
Cleanup: remove redundant PyErr_Clear calls after PyErr_Fetch
Diffstat (limited to 'source/blender/python/intern')
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index c67f0c028cf..83e14c305bc 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -4542,7 +4542,6 @@ static PyObject *pyrna_prop_collection_getattro(BPy_PropertyRNA *self, PyObject PyObject *error_type, *error_value, *error_traceback; PyErr_Fetch(&error_type, &error_value, &error_traceback); - PyErr_Clear(); cls = pyrna_struct_Subtype(&r_ptr); ret = PyObject_GenericGetAttr(cls, pyname); @@ -7937,8 +7936,6 @@ StructRNA *srna_from_self(PyObject *self, const char *error_prefix) StructRNA *srna; PyErr_Fetch(&error_type, &error_value, &error_traceback); - PyErr_Clear(); - srna = pyrna_struct_as_srna(self, false, error_prefix); if (!PyErr_Occurred()) { |