From 491489e96cab43339153c2b349866a4efad638ae Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Wed, 27 Mar 2024 18:44:54 +0100 Subject: [PATCH] fix --- rowers/dataprep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rowers/dataprep.py b/rowers/dataprep.py index 57c9d176..cca3b186 100644 --- a/rowers/dataprep.py +++ b/rowers/dataprep.py @@ -492,7 +492,7 @@ def calculate_goldmedalstandard(rower, workout, recurrance=True): indexmax = scores.idxmax() delta = int(df.loc[indexmax, 'delta']) maxvalue = scores.max() - except (ValueError, TypeError): # pragma: no cover + except (ValueError, TypeError, KeyError): # pragma: no cover indexmax = 0 delta = 0 maxvalue = 0