fixing a bug
This commit is contained in:
@@ -416,6 +416,8 @@ def trendflexdata(workouts, options, userid=0):
|
|||||||
pd.cut(datadf[groupby], bins, labels=False))
|
pd.cut(datadf[groupby], bins, labels=False))
|
||||||
except (ValueError, AttributeError): # pragma: no cover
|
except (ValueError, AttributeError): # pragma: no cover
|
||||||
return ('', 'Error: not enough data')
|
return ('', 'Error: not enough data')
|
||||||
|
except TypeError:
|
||||||
|
return ('','Error: something wrong with the data')
|
||||||
else: # pragma: no cover
|
else: # pragma: no cover
|
||||||
try:
|
try:
|
||||||
bins = np.arange(datadf['days ago'].min()-binsize,
|
bins = np.arange(datadf['days ago'].min()-binsize,
|
||||||
|
|||||||
Reference in New Issue
Block a user