diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index 2f13b840..562ded65 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -2168,7 +2168,10 @@ def interactive_multiple_compare_chart(ids, xparam, yparam, plottype='line', metrics_list = [{'name': name, 'rowingmetrics':d } for name, d in metrics.rowingmetrics] - workoutsdict = [{'id': id, 'label': labeldict[id]} for id in ids] + try: + workoutsdict = [{'id': id, 'label': labeldict[id]} for id in ids] + except KeyError: + return ['
Chart error
',''] chart_data = { 'title': '',