summaryrefslogtreecommitdiff
path: root/cc3200/mods/modmachine.c
diff options
context:
space:
mode:
Diffstat (limited to 'cc3200/mods/modmachine.c')
-rw-r--r--cc3200/mods/modmachine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc3200/mods/modmachine.c b/cc3200/mods/modmachine.c
index f82decda2..8a57c2eb4 100644
--- a/cc3200/mods/modmachine.c
+++ b/cc3200/mods/modmachine.c
@@ -130,7 +130,7 @@ STATIC mp_obj_t machine_main(mp_obj_t main) {
if (MP_OBJ_IS_STR(main)) {
MP_STATE_PORT(machine_config_main) = main;
} else {
- nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, mpexception_value_invalid_arguments));
+ mp_raise_ValueError(mpexception_value_invalid_arguments);
}
return mp_const_none;
}