diff --git a/participation/management/commands/parse_notation_sheets.py b/participation/management/commands/parse_notation_sheets.py index 0fbb33d..0bc7822 100644 --- a/participation/management/commands/parse_notation_sheets.py +++ b/participation/management/commands/parse_notation_sheets.py @@ -26,6 +26,12 @@ class Command(BaseCommand): if options['verbosity'] >= 1: self.stdout.write(f"Parsing notation sheet for {tournament}") + if not tournament.notes_sheet_id: + if options['verbosity'] >= 1: + self.stdout.write( + self.style.WARNING(f"No spreadsheet found for {tournament}. Please create it first")) + continue + pools = tournament.pools.all() if options['round']: pools = pools.filter(round=options['round'])