Private
Public Access
1
0

sporttracks and strava warning when no data

This commit is contained in:
Sander Roosendaal
2017-01-12 21:37:14 +01:00
parent aaa687aa9e
commit 3e4a5c060d
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