1 parent 21ffa7c commit 2ff2ea5Copy full SHA for 2ff2ea5
1 file changed
py/vm.c
@@ -1048,7 +1048,11 @@ unwind_jump:;
1048
MARK_EXC_IP_SELECTIVE();
1049
mp_uint_t unum = *ip++;
1050
mp_obj_t obj;
1051
- assert(unum <= 1);
+ if (unum == 2) {
1052
+ mp_warning("exception chaining not supported");
1053
+ // ignore (pop) "from" argument
1054
+ sp--;
1055
+ }
1056
if (unum == 0) {
1057
// search for the inner-most previous exception, to reraise it
1058
obj = MP_OBJ_NULL;
0 commit comments