diff --git a/tournaments/models/tournament.py b/tournaments/models/tournament.py index e3e93fb..90c5244 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -437,6 +437,8 @@ class Tournament(models.Model): return groups def group_stage_match_group(self, group_stage, broadcasted, hide_empty_matches): + if group_stage is None: + return None matches = group_stage.match_set.all() if hide_empty_matches: matches = [m for m in matches if m.should_appear()]