Commit c62e8dbe authored by Jeremy Hylton's avatar Jeremy Hylton

Check for exceptions set by PyDict_GetItem().

parent 76c450ac
...@@ -959,6 +959,8 @@ compiler_add_o(struct compiler *c, PyObject *dict, PyObject *o) ...@@ -959,6 +959,8 @@ compiler_add_o(struct compiler *c, PyObject *dict, PyObject *o)
v = PyDict_GetItem(dict, t); v = PyDict_GetItem(dict, t);
if (!v) { if (!v) {
if (PyErr_Occurred())
return -1;
arg = PyDict_Size(dict); arg = PyDict_Size(dict);
v = PyInt_FromLong(arg); v = PyInt_FromLong(arg);
if (!v) { 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