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
c935d69f
Commit
c935d69f
authored
Jan 13, 2015
by
Damien George
Browse files
py: Make compiler not crash when default except is not last.
parent
d6ed6702
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/compile.c
View file @
c935d69f
...
...
@@ -1987,6 +1987,7 @@ STATIC void compile_try_except(compiler_t *comp, mp_parse_node_t pn_body, int n_
// this is a catch all exception handler
if
(
i
+
1
!=
n_except
)
{
compile_syntax_error
(
comp
,
pn_excepts
[
i
],
"default 'except:' must be last"
);
compile_decrease_except_level
(
comp
);
return
;
}
}
else
{
...
...
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