fix and trial
This commit is contained in:
@@ -2711,7 +2711,10 @@ def handle_setcp(strokesdf,filename,workoutid,debug=False,**kwargs):
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
if not strokesdf.empty:
|
||||
totaltime = strokesdf['time'].max()
|
||||
try:
|
||||
totaltime = strokesdf['time'].max()
|
||||
except KeyError:
|
||||
return 0
|
||||
try:
|
||||
powermean = strokesdf['power'].mean()
|
||||
except KeyError:
|
||||
|
||||
Reference in New Issue
Block a user