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