Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2021-01-18 17:03:20 +01:00
parent dac7abf411
commit 4c73d888c6

View File

@@ -1958,7 +1958,7 @@ def get_workouttype_from_fit(filename,workouttype='water'):
if record.name in ['sport','lap']:
try:
fittype = record.get_values()['sport'].lower()
except KeyError:
except (KeyError,AttributeError):
return 'water'
try:
workouttype = mytypes.fitmappinginv[fittype]