Oh that! Yes. The thing is that there are two reasons this may happen: 1) OP just did not inlcude the line that indicate that it's a loop 2) OP confuses continue and pass and does not know that continue must be used in a loop.
If there a is a loop, then yes maybe the problem is the indentation, but since there is another very likely explanation, I would not assume the former