diff options
| author | Dan Halbert <halbert@halwitz.org> | 2020-02-04 16:55:56 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2020-02-04 16:55:56 -0500 |
| commit | e13642351c2827e62a614d569138de8971ebd7c8 (patch) | |
| tree | 9fa2b261e3bc372a050baf0938dbdf8067f927ba | |
| parent | 7fe959ab39e14b000934b15d7cce13aae9f6a525 (diff) | |
fix printing single-arg exceptions
| -rw-r--r-- | py/objexcept.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/py/objexcept.c b/py/objexcept.c index f211b87ee..b7a536c5e 100644 --- a/py/objexcept.c +++ b/py/objexcept.c @@ -127,7 +127,8 @@ void mp_obj_exception_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kin } return; } - } else if (o->args->len == 1) { + } + if (o->args->len == 1) { mp_obj_print_helper(print, o->args->items[0], PRINT_STR); return; } |
