Issue #17810: return -1 on error
This commit is contained in:
parent
b3d3ee4fef
commit
74d8d63b18
|
@ -2941,7 +2941,7 @@ save_frozenset(PicklerObject *self, PyObject *obj)
|
|||
|
||||
iter = PyObject_GetIter(obj);
|
||||
if (iter == NULL) {
|
||||
return NULL;
|
||||
return -1;
|
||||
}
|
||||
for (;;) {
|
||||
PyObject *item;
|
||||
|
|
Loading…
Reference in New Issue