From ee63871e1c33d7b0fec968c0065aba3958df93f8 Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Wed, 8 Nov 2023 20:45:44 +0100 Subject: [PATCH] Augment logging a bit --- src/solo_turnier/html_parser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/solo_turnier/html_parser.py b/src/solo_turnier/html_parser.py index db97cac..45b3f32 100644 --- a/src/solo_turnier/html_parser.py +++ b/src/solo_turnier/html_parser.py @@ -60,12 +60,14 @@ class HtmlParser: if tds[1].contents[0].startswith('Alle Starter weiter genommen.'): self.l.info('No excluded starters found.') return + regex = re.compile('(.*) \\(([0-9]+)\\)') place = tds[0].contents[0] match = regex.fullmatch(tds[1].contents[0]) if match is None: + self.l.error('Could not match %s to regex search pattern', str(tds)) raise Exception(f'Could not match {tds} to regex search pattern') name = match.group(1) number = match.group(2)