pylint #20904 return in try body is swallowed by return in finally clause [resolved]
If you include a return statement in the finally clause of a try...finally bloc and there also is one in the try body, the return in the try body is swallowed. In fact, When return passes control out of a try statement with a finally clause, that finally clause is executed before really leaving the function. Maybe this could become a new pylint rule? | |
priority | normal |
---|---|
type | bug |
done in | 0.20.0 |
load | 0.500 |
load left | 0.000 |
closed by | <not specified> |