Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8dc19f6

Browse files
author
Vladimir Marangozov
committed
Propagate the current exception in get_inprogress_dict() -- it doesn't
need to be cleared.
1 parent 794b483 commit 8dc19f6

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

Objects/object.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,6 @@ get_inprogress_dict(void)
356356
}
357357
inprogress = PyDict_GetItem(tstate_dict, _PyCompareState_Key);
358358
if (inprogress == NULL) {
359-
PyErr_Clear();
360359
inprogress = PyDict_New();
361360
if (inprogress == NULL)
362361
return NULL;

0 commit comments

Comments
 (0)