From 49123a3b58c3cb41f54ab3cd0f4759cf04ee399a Mon Sep 17 00:00:00 2001 From: Laurent Date: Sat, 29 Mar 2025 11:10:44 +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 3fb3fde..a7805e6 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -1038,7 +1038,7 @@ class Tournament(BaseModel): return plural_format("jour", self.day_duration) def has_club_address(self): - if self.event.club: + if self.event and self.event.club: return self.event.club.has_address() else: return False