Private
Public Access
1
0

small bug fix

This commit is contained in:
Sander Roosendaal
2018-04-10 16:48:44 +02:00
parent b6dd38ab9e
commit 0c496fa315
3 changed files with 21 additions and 1 deletions

View File

@@ -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","",""