Kaydet (Commit) fbfe0936 authored tarafından Jeremy Hylton's avatar Jeremy Hylton

Check for exceptions set by PyDict_GetItem().

üst 811c4e0b
......@@ -959,6 +959,8 @@ compiler_add_o(struct compiler *c, PyObject *dict, PyObject *o)
v = PyDict_GetItem(dict, t);
if (!v) {
if (PyErr_Occurred())
return -1;
arg = PyDict_Size(dict);
v = PyInt_FromLong(arg);
if (!v) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment