Private
Public Access
1
0

Merge tag 'c2error' into develop

strava/sporttracks warning for no data
This commit is contained in:
Sander Roosendaal
2017-01-12 21:39:32 +01:00
3 changed files with 54 additions and 30 deletions

View File

@@ -238,9 +238,12 @@ def get_strava_workout(user,stravaid):
def createstravaworkoutdata(w):
filename = w.csvfilename
row = rowingdata(filename)
tcxfilename = filename[:-4]+'.tcx'
row.exporttotcx(tcxfilename,notes=w.notes)
try:
row = rowingdata(filename)
tcxfilename = filename[:-4]+'.tcx'
row.exporttotcx(tcxfilename,notes=w.notes)
except:
tcxfilename = 0
return tcxfilename