bugfix: finally sections are executed before return/break
This commit is contained in:
parent
0a57f662fa
commit
ea2306b301
6 changed files with 64 additions and 2 deletions
|
|
@ -13,9 +13,11 @@ try:
|
|||
try:
|
||||
genErrors("error!")
|
||||
except ESomething:
|
||||
echo("Error happened")
|
||||
echo "came here"
|
||||
stdout.write("E")
|
||||
stdout.write("C")
|
||||
raise newException(EsomeotherErr, "bla")
|
||||
finally:
|
||||
echo "caught"
|
||||
|
||||
#OUT ECcaught
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue