Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2018-07-08 09:51:33 +02:00
parent 574b81207c
commit 6b212eaaf0

View File

@@ -351,10 +351,8 @@ def handle_stravaexport(f2,workoutname,stravatoken,description='',
# w = Workout.objects.get(id=workoutid)
client = stravalib.Client(access_token=stravatoken)
try:
act = client.upload_activity(f2,'tcx.gz',name=workoutname)
except:
return {0,'Strava upload failed'}
act = client.upload_activity(f2,'tcx.gz',name=workoutname)
try:
res = act.wait(poll_interval=5.0,timeout=30)
message = 'Workout successfully synchronized to Strava'