I think this line should be in the try-except block as well, as transformers could store up a potentially valid line, and only decide that it's a SyntaxError when asked to give it back.