Defined line as variable

Failed to run if local variable line is not defined