diff options
author | Damien George <damien.p.george@gmail.com> | 2017-06-15 11:54:41 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-06-15 11:54:41 +1000 |
commit | 48d867b4a68e53901aac87c2ff0f2a7e65f735c7 (patch) | |
tree | 178bfc0dc13bcb3b9d77c8a99652e9a9dc057e7d /py/builtinimport.c | |
parent | 1e70fda69fcb4991eb60ed43e610f664ea1319e6 (diff) | |
download | micropython-48d867b4a68e53901aac87c2ff0f2a7e65f735c7.tar.gz micropython-48d867b4a68e53901aac87c2ff0f2a7e65f735c7.zip |
all: Make more use of mp_raise_{msg,TypeError,ValueError} helpers.
Diffstat (limited to 'py/builtinimport.c')
-rw-r--r-- | py/builtinimport.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/py/builtinimport.c b/py/builtinimport.c index 6994fc48f4..173e040afb 100644 --- a/py/builtinimport.c +++ b/py/builtinimport.c @@ -230,8 +230,7 @@ STATIC void do_load(mp_obj_t module_obj, vstr_t *file) { #endif // If we get here then the file was not frozen and we can't compile scripts. - nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ImportError, - "script compilation not supported")); + mp_raise_msg(&mp_type_ImportError, "script compilation not supported"); } STATIC void chop_component(const char *start, const char **end) { |