Message369589
This is expected behaviour and happens because we need to clean the exception variable outside the `except` block to avoid reference cycles. If you need the variable later, you need to do an assignment:
try:
1/0
except Exception as exc:
e = exc
finally:
return e |
|
Date |
User |
Action |
Args |
2020-05-22 11:04:31 | pablogsal | set | recipients:
+ pablogsal, oleksandr.suvorov |
2020-05-22 11:04:31 | pablogsal | set | messageid: <1590145471.28.0.0343406253198.issue40728@roundup.psfhosted.org> |
2020-05-22 11:04:31 | pablogsal | link | issue40728 messages |
2020-05-22 11:04:31 | pablogsal | create | |
|