Skip to content

Commit

Permalink
Generate: Provide a better error message if someone names their file …
Browse files Browse the repository at this point in the history
…weights.yaml
  • Loading branch information
remyjette committed Sep 26, 2023
1 parent 4aed2be commit 1eec9e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ def main(args=None, callback=ERmain):
player_id += 1

args.multi = max(player_id - 1, args.multi)

if args.multi == 0:
raise Exception("No individual player files found and number of players is 0. "
"Provide individual player files or specify the number of players via host.yaml or --multi.")

logging.info(f"Generating for {args.multi} player{'s' if args.multi > 1 else ''}, "
f"{seed_name} Seed {seed} with plando: {args.plando}")

Expand Down

0 comments on commit 1eec9e7

Please sign in to comment.