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?
|closed by||<not specified>|