diff options
| author | Damien <damien.p.george@gmail.com> | 2013-12-29 17:17:43 +0000 |
|---|---|---|
| committer | Damien <damien.p.george@gmail.com> | 2013-12-29 17:17:43 +0000 |
| commit | b86e3f92932ec543788dc66948519d770d0e5bb0 (patch) | |
| tree | aed320bdf2b9bc5b8ac6ddcdcd5d4a082f04b4e0 /unix/main.c | |
| parent | 8f9e2ee157dbf9a882c379bc9d19d68806148529 (diff) | |
py: implement some basic exception matching.
Diffstat (limited to 'unix/main.c')
| -rw-r--r-- | unix/main.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/unix/main.c b/unix/main.c index 295e82d26..16012e718 100644 --- a/unix/main.c +++ b/unix/main.c @@ -115,14 +115,10 @@ void do_file(const char *file) { if (module_fun != mp_const_none) { nlr_buf_t nlr; if (nlr_push(&nlr) == 0) { - mp_obj_t ret = rt_call_function_0(module_fun); - printf("done! got: "); - mp_obj_print(ret); - printf("\n"); + rt_call_function_0(module_fun); nlr_pop(); } else { // uncaught exception - printf("exception: "); mp_obj_print((mp_obj_t)nlr.ret_val); printf("\n"); } |
