Private
Public Access
1
0

fixing fit api

This commit is contained in:
2025-10-15 20:27:11 +02:00
parent f04351047f
commit d8339f653c
4 changed files with 16 additions and 5 deletions

View File

@@ -189,7 +189,10 @@ def sort_coordinates_ccw(coordinates):
def crewnerdcourse(doc):
courses = []
for course in doc:
name = course.findall('.//opengis:name', ns)[0].text
try:
name = course.findall('.//opengis:name', ns)[0].text
except IndexError:
name = 'No name'
try:
description = course.findall('.//opengis:description', ns)[0].text
except IndexError: