|
pylint #9776: warning if return or break inside a finally [resolved]If you include a return or break statement inside the finally clause
of a try... finally block then exceptions raised in the try clause are
silently swallowed instead of being re-raised.
This seems like a bad thing (tm) and it would be useful if pylint
could warn about this.
| | priority | normal |
|---|
| type | enhancement |
|---|
| done in | 0.20.0 |
|---|
| load | 0.500 |
|---|
| load left | 0.000 |
|---|
Workflow history
| validation pending | resolved | | 2010/08/26 10:23 | sthenault | | done | validation pending |
version published
| 2010/03/24 10:39 | eanclin | | in-progress | done |
A warning is raised if a break statement is placed in the finally clause of a try...finally bloc and if it is not in a for / while bloc inside the finally clause. The warning is also raised if a return is found.
| 2010/02/23 23:01 | aleufroy | | open | in-progress | | 2010/02/23 15:46 | aleufroy |
( add comment) | |
|