Return and Break were broken
BreakException and ReturnException were wrapped in MuranoPlException similar to other python exceptions. So they were never catch by the code that expects them and thus those macros didn't work Change-Id: I1a4e766a1f8a9926768acec24f09b5e7b0eb169a
This commit is contained in:
parent
5369506800
commit
6c210b19bb
@ -37,7 +37,9 @@ class CodeBlock(expressions.DslExpression):
|
|||||||
def action():
|
def action():
|
||||||
try:
|
try:
|
||||||
expr.execute(context, murano_class)
|
expr.execute(context, murano_class)
|
||||||
except dsl_exception.MuranoPlException:
|
except (dsl_exception.MuranoPlException,
|
||||||
|
exceptions.BreakException,
|
||||||
|
exceptions.ReturnException):
|
||||||
raise
|
raise
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
raise dsl_exception.MuranoPlException.\
|
raise dsl_exception.MuranoPlException.\
|
||||||
|
Loading…
Reference in New Issue
Block a user