Check for exceptions set by PyDict_GetItem().

This commit is contained in:
Jeremy Hylton 2006-08-23 18:13:39 +00:00
parent 811c4e0b7c
commit fbfe093607
1 changed files with 2 additions and 0 deletions

View File

@ -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) {