API - update messages on gpx related errors

This commit is contained in:
Sam
2022-07-13 09:49:04 +02:00
parent 0eaae0e171
commit f5881763ae
2 changed files with 5 additions and 5 deletions

View File

@ -307,9 +307,9 @@ def process_one_gpx_file(
absolute_map_filepath = get_absolute_file_path(map_filepath)
generate_map(absolute_map_filepath, map_data)
except (gpxpy.gpx.GPXXMLSyntaxException, TypeError) as e:
raise WorkoutException('error', 'Error during gpx file parsing.', e)
raise WorkoutException('error', 'error during gpx file parsing', e)
except Exception as e:
raise WorkoutException('error', 'Error during gpx processing.', e)
raise WorkoutException('error', 'error during gpx processing', e)
try:
new_workout = create_workout(