Private
Public Access
1
0

Merge branch 'release/v16.7.9'

This commit is contained in:
Sander Roosendaal
2021-11-19 17:03:37 +01:00
2 changed files with 6 additions and 2 deletions

View File

@@ -432,8 +432,8 @@ def createstravaworkoutdata(w,dozip=True):
return gzfilename,""
else: # pragma: no cover
return tcxfilename,""
return tcxfilename,""
# Upload the TCX file to Strava and set the workout activity type

View File

@@ -350,6 +350,10 @@ def handle_strava_sync(stravatoken,workoutid,filename,name,activity_type,descrip
tb = traceback.format_exc()
dologging('strava_fail.log',tb)
failed = True
# temporary hack until stravalib is fixed
if 'LatLon' in tb:
dologging('strava_fail.log','Trying temporary fix')
failed = False
except (ActivityUploadFailed, stravalib.exc.RateLimitExceeded): # pragma: no cover
dologging('strava_fail.log','Strava upload failed for Workout {id}'.format(id=workoutid))
tb = traceback.format_exc()