mirror of https://github.com/python/cpython.git
Propagate the current exception in get_inprogress_dict() -- it doesn't
need to be cleared.
This commit is contained in:
parent
794b483d0d
commit
8dc19f672b
|
@ -356,7 +356,6 @@ get_inprogress_dict(void)
|
||||||
}
|
}
|
||||||
inprogress = PyDict_GetItem(tstate_dict, _PyCompareState_Key);
|
inprogress = PyDict_GetItem(tstate_dict, _PyCompareState_Key);
|
||||||
if (inprogress == NULL) {
|
if (inprogress == NULL) {
|
||||||
PyErr_Clear();
|
|
||||||
inprogress = PyDict_New();
|
inprogress = PyDict_New();
|
||||||
if (inprogress == NULL)
|
if (inprogress == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue