small bug fix
This commit is contained in:
@@ -774,7 +774,10 @@ def interactive_histoall(theworkouts):
|
||||
if rowdata.empty:
|
||||
return "","No Valid Data Available","",""
|
||||
|
||||
histopwr = rowdata['power'].values
|
||||
try:
|
||||
histopwr = rowdata['power'].values
|
||||
except KeyError:
|
||||
return "","No power data","",""
|
||||
if len(histopwr) == 0:
|
||||
return "","No valid data available","",""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user