diff --git a/app/coords/router.py b/app/coords/router.py index 75419a8..d60e5b6 100644 --- a/app/coords/router.py +++ b/app/coords/router.py @@ -39,6 +39,8 @@ def generate_kml(file: StringIO, track_name: str): points = [] for line in file.readlines(): + if line.strip() == line: + continue coords = line.split(":") coord = coords[0].strip() current_label = int(coords[1].strip())