fix pylint for unreachable code