From 57942fce92fe0e06e6a9456008c561d3a6a86c4b Mon Sep 17 00:00:00 2001 From: Laurent Date: Sat, 11 Jan 2025 18:48:04 +0100 Subject: [PATCH] Fix crash --- tournaments/models/tournament.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tournaments/models/tournament.py b/tournaments/models/tournament.py index a0123b2..5602bc4 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -681,7 +681,7 @@ class Tournament(models.Model): def round_to_show(self): # print('===== round_to_show') last_started_match = self.first_unfinished_match() - if last_started_match: + if last_started_match and last_started_match.round: # print(f'last_started_match = {last_started_match.name}') current_round = last_started_match.round.root_round() # print(f'round_to_show > current_round: {current_round.name()}')