Hide the traceback for the ReloadException.

Many users think it's an error when it's us simply stopping the
code.
This commit is contained in:
Scott Shawcroft 2019-05-08 14:53:20 -07:00
parent bec84f20ab
commit 6440af5c06
No known key found for this signature in database
GPG Key ID: FD0EDC4B6C53CA59
1 changed files with 3 additions and 1 deletions

View File

@ -131,7 +131,9 @@ STATIC int parse_compile_execute(const void *source, mp_parse_input_kind_t input
// at the moment, the value of SystemExit is unused
ret = pyexec_system_exit;
} else {
if ((mp_obj_t) nlr.ret_val != MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_reload_exception))) {
mp_obj_print_exception(&mp_plat_print, (mp_obj_t)nlr.ret_val);
}
ret = PYEXEC_EXCEPTION;
}
}