fix printing single-arg exceptions

This commit is contained in:
Dan Halbert 2020-02-04 16:55:56 -05:00
parent 7fe959ab39
commit e13642351c

View File

@ -127,7 +127,8 @@ void mp_obj_exception_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kin
} }
return; return;
} }
} else if (o->args->len == 1) { }
if (o->args->len == 1) {
mp_obj_print_helper(print, o->args->items[0], PRINT_STR); mp_obj_print_helper(print, o->args->items[0], PRINT_STR);
return; return;
} }