diff options
Diffstat (limited to 'stmhal/input.c')
-rw-r--r-- | stmhal/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/input.c b/stmhal/input.c index d704c2cf76..0ded898667 100644 --- a/stmhal/input.c +++ b/stmhal/input.c @@ -14,7 +14,7 @@ STATIC mp_obj_t mp_builtin_input(uint n_args, const mp_obj_t *args) { vstr_init(&line, 16); int ret = readline(&line, ""); if (line.len == 0 && ret == VCP_CHAR_CTRL_D) { - nlr_jump(mp_obj_new_exception(&mp_type_EOFError)); + nlr_raise(mp_obj_new_exception(&mp_type_EOFError)); } mp_obj_t o = mp_obj_new_str((const byte*)line.buf, line.len, false); vstr_clear(&line); |