Merge tag 'c2error' into develop
strava/sporttracks warning for no data
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user