Private
Public Access
1
0

more broad error catching jsondecode

This commit is contained in:
Sander Roosendaal
2021-06-18 11:14:50 +02:00
parent da3426cd30
commit ecaf0194fe
2 changed files with 7 additions and 1 deletions

View File

@@ -547,7 +547,7 @@ def get_strava_stream(r,metric,stravaid,series_type='time',fetchresolution='high
return np.array(data['data'])
except TypeError: # pragma: no cover
return None
except JSONDecodeError:
except:
return None
return None # pragma: no cover