summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 8a732a0..837b7c1 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -3461,7 +3461,9 @@ PyEval_EvalCodeEx(PyObject *_co, PyObject *globals, PyObject *locals,
keyword);
goto fail;
}
- PyDict_SetItem(kwdict, keyword, value);
+ if (PyDict_SetItem(kwdict, keyword, value) == -1) {
+ goto fail;
+ }
continue;
kw_found:
if (GETLOCAL(j) != NULL) {