Private
Public Access
1
0

Merge branch 'develop' into feature/newc2

This commit is contained in:
Sander Roosendaal
2021-05-22 14:05:40 +02:00

View File

@@ -2825,7 +2825,10 @@ def handle_rp3_async_workout(userid,rp3token,rp3id,startdatetime,max_attempts,de
if response.status_code != 200: # pragma: no cover
have_link = True
workout_download_details = pd.json_normalize(response.json()['data']['download'])
try:
workout_download_details = pd.json_normalize(response.json()['data']['download'])
except JSONDecodeError:
return 0
if workout_download_details.iat[0,1] == 'ready':
download_url = workout_download_details.iat[0,2]