Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
20e9ed39
Commit
20e9ed39
authored
Apr 22, 2014
by
Paul Sokolovsky
Browse files
builtinimport: If there was error compiling imported module, raise exception.
parent
fa6f0506
Changes
1
Show whitespace changes
Inline
Side-by-side
py/builtinimport.c
View file @
20e9ed39
...
...
@@ -122,7 +122,7 @@ void do_load(mp_obj_t module_obj, vstr_t *file) {
// TODO handle compile error correctly
mp_locals_set
(
old_locals
);
mp_globals_set
(
old_globals
);
return
;
nlr_raise
(
mp_obj_new_exception_msg
(
&
mp_type_SyntaxError
,
"Syntax error in imported module"
))
;
}
// complied successfully, execute it
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment