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:
Stan Lagun 2014-06-16 20:39:48 +04:00
parent 5369506800
commit 6c210b19bb
1 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,9 @@ class CodeBlock(expressions.DslExpression):
def action():
try:
expr.execute(context, murano_class)
except dsl_exception.MuranoPlException:
except (dsl_exception.MuranoPlException,
exceptions.BreakException,
exceptions.ReturnException):
raise
except Exception as ex:
raise dsl_exception.MuranoPlException.\