Exceptions get muted in Try-Finally
Re-raise exception if no Catch block is present (as in Try-Finally) Change-Id: I6f1ad2ff48566ac45dbb3e391c7d583a43be24d5 Closes-Bug: #1377941
This commit is contained in:
parent
6c26981453
commit
3da4f718b2
@ -123,6 +123,8 @@ class TryBlockMacro(expressions.DslExpression):
|
|||||||
raise
|
raise
|
||||||
finally:
|
finally:
|
||||||
context.set_data(None, '?currentException')
|
context.set_data(None, '?currentException')
|
||||||
|
else:
|
||||||
|
raise
|
||||||
else:
|
else:
|
||||||
if self._else_block:
|
if self._else_block:
|
||||||
self._else_block.execute(context, murano_class)
|
self._else_block.execute(context, murano_class)
|
||||||
|
Loading…
Reference in New Issue
Block a user