From 4493fa09ea12ce948b60a0717627171a4265ac3a Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Fri, 11 Nov 2022 19:41:18 +0100 Subject: [PATCH] Fix issue with dropped classes --- src/solo_turnier/reader.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/solo_turnier/reader.py b/src/solo_turnier/reader.py index c214b77..8bef531 100644 --- a/src/solo_turnier/reader.py +++ b/src/solo_turnier/reader.py @@ -48,7 +48,13 @@ class ERReader: break if found == -1: - raise Exception(f'Could not find the dance in the result file.') + self.l.warn(f'Could not find the dance {tanz} in the result file for {gruppe} ({klasse}). This might mean that the competition was not carried out.') + return { + 'gruppe': gruppe, + 'klasse': klasse, + 'tanz': tanz, + 'finalisten': [] + } pass # Extract the finalists