8000 fix printing single-arg exceptions · pdp7/circuitpython@e136423 · GitHub
[go: up one dir, main page]

Skip to content

Commit e136423

Browse files
committed
fix printing single-arg exceptions
1 parent 7fe959a commit e136423

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

py/objexcept.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ void mp_obj_exception_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kin
127127
}
128128
return;
129129
}
130-
} else if (o->args->len == 1) {
130+
}
131+
if (o->args->len == 1) {
131132
mp_obj_print_helper(print, o->args->items[0], PRINT_STR);
132133
return;
133134
}

0 commit comments

Comments
 (0)
0