From 2e443180e951e9446c1ddcf73e87e1ec32ff6063 Mon Sep 17 00:00:00 2001 From: Laurent Date: Thu, 27 Mar 2025 22:18:38 +0100 Subject: [PATCH] fix crash --- tournaments/models/match.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tournaments/models/match.py b/tournaments/models/match.py index 15194b8..302bf17 100644 --- a/tournaments/models/match.py +++ b/tournaments/models/match.py @@ -59,7 +59,8 @@ class Match(SideStoreModel): def court_name(self, index): club = None - if self.tournament().event: + tournament = self.tournament() + if tournament and tournament.event: club = self.tournament().event.club if club: