From bb10d5fa0640cda8e6c3518d1f5f1eb4018498b6 Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Wed, 8 Nov 2023 20:45:19 +0100 Subject: [PATCH] Ignore failed preview round scans --- src/solo_turnier/worker.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/solo_turnier/worker.py b/src/solo_turnier/worker.py index e4e1192..6d2be77 100644 --- a/src/solo_turnier/worker.py +++ b/src/solo_turnier/worker.py @@ -159,7 +159,10 @@ class PreviewWorker: for file in parsers: parser = parsers[file] - self.__extractPersonsFromSinglePreview(parser) + try: + self.__extractPersonsFromSinglePreview(parser) + except: + self.l.error('Failed to parse preview round in file %s. Skipping this file\'s content.', parser.fileName) return types.HtmlPreviewImport(self.participants, self.previewResults)