summaryrefslogtreecommitdiffstats
path: root/Modules/_elementtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_elementtree.c')
-rw-r--r--Modules/_elementtree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c
index 9789527..c179e96 100644
--- a/Modules/_elementtree.c
+++ b/Modules/_elementtree.c
@@ -347,7 +347,8 @@ get_attrib_from_keywords(PyObject *kwds)
Py_DECREF(attrib_str);
if (attrib)
- PyDict_Update(attrib, kwds);
+ if (PyDict_Update(attrib, kwds) < 0)
+ return NULL;
return attrib;
}