diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index 2993b728..64df2848 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -1090,7 +1090,10 @@ def interactive_cum_flex_chart2(theworkouts,promember=0, try: datadf['y1'] = datadf.ix[:,yparam1] except KeyError: - datadf['y1'] = datadf['pace'] + try: + datadf['y1'] = datadf['pace'] + except KeyError: + return ['','
No non-zero data in selection
','',''] if yparam2 != 'None': try: datadf['y2'] = datadf.ix[:,yparam2]