Commit 9966b57b authored by Boxiang Sun's avatar Boxiang Sun

throw exception when a error occured in set slice index

parent 215bef6a
......@@ -4713,6 +4713,8 @@ Box* callItemOrSliceAttr(Box* target, BoxedString* item_str, BoxedString* slice_
sliceIndex(bslice->stop, &stop);
adjustNegativeIndicesOnObject(target, &start, &stop);
if (PyErr_Occurred())
throwCAPIException();
Box* boxedStart = boxInt(start);
Box* boxedStop = boxInt(stop);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment