Compare commits

..

1 Commits

View File

@ -1169,13 +1169,10 @@ __NEXT_STEP:
if(has_invalid) { if(has_invalid) {
py_clearexc(NULL); py_clearexc(NULL);
TypeError("catching classes that do not inherit from BaseException is not allowed"); TypeError("catching classes that do not inherit from BaseException is not allowed");
c11_vector__pop(&frame->exc_stack); }
goto __ERROR_RE_RAISE;
} else {
py_newbool(TOP(), ok); py_newbool(TOP(), ok);
DISPATCH(); DISPATCH();
} }
}
case OP_HANDLE_EXCEPTION: { case OP_HANDLE_EXCEPTION: {
FrameExcInfo* info = Frame__top_exc_info(frame); FrameExcInfo* info = Frame__top_exc_info(frame);
assert(info != NULL && py_isnil(&info->exc)); assert(info != NULL && py_isnil(&info->exc));