mirror of
https://github.com/pocketpy/pocketpy
synced 2026-02-04 06:30:17 +00:00
fix #440
This commit is contained in:
parent
5ab8381471
commit
2f776ae05a
@ -1169,9 +1169,12 @@ __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);
|
||||||
|
DISPATCH();
|
||||||
}
|
}
|
||||||
py_newbool(TOP(), ok);
|
|
||||||
DISPATCH();
|
|
||||||
}
|
}
|
||||||
case OP_HANDLE_EXCEPTION: {
|
case OP_HANDLE_EXCEPTION: {
|
||||||
FrameExcInfo* info = Frame__top_exc_info(frame);
|
FrameExcInfo* info = Frame__top_exc_info(frame);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user