Print l and line after ValueError