Issue #19437: Fix _pickle, don't call _Unpickler_SkipConsumed() with an
exception set
This commit is contained in:
parent
b43ad1d569
commit
2ae57e3cf8
|
@ -5430,9 +5430,6 @@ load(UnpicklerObject *self)
|
|||
break; /* and we are done! */
|
||||
}
|
||||
|
||||
if (_Unpickler_SkipConsumed(self) < 0)
|
||||
return NULL;
|
||||
|
||||
/* XXX: It is not clear what this is actually for. */
|
||||
if ((err = PyErr_Occurred())) {
|
||||
if (err == PyExc_EOFError) {
|
||||
|
@ -5441,6 +5438,9 @@ load(UnpicklerObject *self)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (_Unpickler_SkipConsumed(self) < 0)
|
||||
return NULL;
|
||||
|
||||
PDATA_POP(self->stack, value);
|
||||
return value;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue