mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08:00
Check for exceptions set by PyDict_GetItem().
This commit is contained in:
parent
811c4e0b7c
commit
fbfe093607
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user