diff options
Diffstat (limited to 'source/blender/python/intern/bpy_interface.c')
-rw-r--r-- | source/blender/python/intern/bpy_interface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index ce2d9bca973..bc633daad27 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -195,7 +195,9 @@ void BPY_context_dict_clear_members_array(void **dict_p, PyObject *dict = *dict_p; BLI_assert(PyDict_Check(dict)); for (uint i = 0; i < context_members_len; i++) { - PyDict_DelItemString(dict, context_members[i]); + if (PyDict_DelItemString(dict, context_members[i])) { + PyErr_Clear(); + } } if (use_gil) { |