fixing fit api
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user