From 0889c6a1e727eb201ef8e0936be8e124c7d77d9e Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Tue, 4 Jun 2024 09:05:41 +0200 Subject: [PATCH] fix --- rowers/interactiveplots.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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': '',