Private
Public Access
1
0

some bug fixes

This commit is contained in:
Sander Roosendaal
2017-12-10 11:05:20 +01:00
parent 2046af9042
commit 87e3c19f7c
2 changed files with 8 additions and 2 deletions

View File

@@ -311,7 +311,10 @@ def handle_stravaexport(f2,workoutname,stravatoken,description='',
# description doesn't work yet. Have to wait for stravalib to update
if res:
act = client.update_activity(res.id,activity_type=activity_type,description=description,device_name='Rowsandall.com')
try:
act = client.update_activity(res.id,activity_type=activity_type,description=description,device_name='Rowsandall.com')
except TypeError:
act = client.update_activity(res.id,activity_type=activity_type,description=description)
else:
message = 'Strava activity update timed out.'
return (0,message)